Compare commits

..

No commits in common. '94d79627be75e1f0b9ce3dafbe6c2ebde18b9b8e' and 'e9a5f7023403cb4566156af2bfe6dff7888ae5b3' have entirely different histories.

@ -62,14 +62,11 @@ public class PongServer
Console.WriteLine("Connection " + choisenRoom.Key); Console.WriteLine("Connection " + choisenRoom.Key);
if (choisenRoom.Value != default ) if (choisenRoom.Value != default )
{ {
Thread join = new Thread(() => Join(data, remoteEndPoint, serverSocket, choisenRoom.Value)); Join(data, remoteEndPoint, serverSocket, choisenRoom.Value);
join.Start();
} }
else else
{ {
Thread host = new Thread(() => Host(data, remoteEndPoint, serverSocket, true)); Host(data, remoteEndPoint, serverSocket, true);
host.Start();
} }
} }

@ -79,6 +79,8 @@ namespace Server
} }
catch (Exception ex) { } catch (Exception ex) { }
} }
semaphore.WaitOne(); semaphore.WaitOne();

Loading…
Cancel
Save