diff --git a/Source/GSSocketStream.m b/Source/GSSocketStream.m index 104d9571f..70b3e0ed4 100644 --- a/Source/GSSocketStream.m +++ b/Source/GSSocketStream.m @@ -1722,8 +1722,8 @@ setNonBlocking(SOCKET fd) close((intptr_t)_loopID); else shutdown((intptr_t)_loopID, SHUT_RD); - [super close]; _loopID = (void*)(intptr_t)-1; + [super close]; #endif _sock = INVALID_SOCKET; } @@ -2196,8 +2196,8 @@ setNonBlocking(SOCKET fd) close((intptr_t)_loopID); else shutdown((intptr_t)_loopID, SHUT_WR); - [super close]; _loopID = (void*)(intptr_t)-1; + [super close]; #endif _sock = INVALID_SOCKET; } @@ -2500,8 +2500,8 @@ setNonBlocking(SOCKET fd) if (_loopID != (void*)(intptr_t)-1) { close((intptr_t)_loopID); - [super close]; _loopID = (void*)(intptr_t)-1; + [super close]; } #endif _sock = INVALID_SOCKET;