mirror of
https://gitlab1.ptb.de/waltem01/csharpsocketserver
synced 2024-02-04 23:19:43 +00:00
await client listen
This commit is contained in:
parent
50333f26d6
commit
a054b0137c
|
@ -75,7 +75,7 @@ public static class Connection {
|
|||
// Accept any client, stop listening after first client is connected and return client
|
||||
own.BeginAccept(new AsyncCallback(AcceptCallback), own);
|
||||
// Wait for and close connection
|
||||
while (!own.Connected)
|
||||
while (self == null)
|
||||
Thread.Sleep(250);
|
||||
own.Close();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user