fixed wrong socket shutdown detection

This commit is contained in:
dimok789 2016-11-27 23:33:02 +01:00
parent c2bf18f3af
commit 9dca350343

View File

@ -29,7 +29,7 @@ TcpReceiver::~TcpReceiver()
{
exitRequested = true;
if(serverSocket > 0)
if(serverSocket >= 0)
{
shutdown(serverSocket, SHUT_RDWR);
}