Skip to content
This repository was archived by the owner on Dec 23, 2022. It is now read-only.

Commit 0ae9232

Browse files
committed
Fixed "Not listening." Error from Unit Tests
1 parent fc7aa98 commit 0ae9232

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

RCONServerLib/RemoteConServer.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,9 @@ private void OnAccept(IAsyncResult result)
220220

221221
_clients.Add(tcpClient);
222222

223+
if (!_listener.Server.IsBound)
224+
return;
225+
223226
_listener.BeginAcceptTcpClient(OnAccept, _listener);
224227
}
225228

0 commit comments

Comments
 (0)