mirror of
https://github.com/fbarresi/Sharp7.git
synced 2026-02-04 08:42:51 +00:00
Check Connection on Socket close
This commit is contained in:
@@ -723,7 +723,10 @@ namespace Sharp7
|
|||||||
|
|
||||||
public int Disconnect()
|
public int Disconnect()
|
||||||
{
|
{
|
||||||
Socket.Close();
|
if (Socket != null && Socket.Connected)
|
||||||
|
{
|
||||||
|
Socket.Close();
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user