fix race condition with socket binding
This commit is contained in:
parent
1fca9b6860
commit
c3fdff890a
1 changed files with 2 additions and 1 deletions
|
|
@ -79,7 +79,8 @@ namespace TShockAPI
|
|||
|
||||
private static void Listener()
|
||||
{
|
||||
listener = new UdpClient(ListenPort);
|
||||
if (listener == null)
|
||||
listener = new UdpClient(ListenPort);
|
||||
while (ContinueServer)
|
||||
{
|
||||
try
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue