Core/Networking: Fix infinite loop and deadlock when closing socket.
This commit is contained in:
@@ -119,7 +119,7 @@ namespace Framework.Networking
|
||||
|
||||
public void CloseSocket()
|
||||
{
|
||||
if (_socket == null)
|
||||
if (_socket == null || !_socket.Connected)
|
||||
return;
|
||||
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user