Fixup _unusedData flag for server streams doing an accept.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23217 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2006-08-08 16:23:46 +00:00
parent 3e6649d47d
commit 2006facfbc
3 changed files with 47 additions and 8 deletions

View file

@ -1830,6 +1830,7 @@ else NSLog(@"EVENTS:%x", events.lNetworkEvents);
socklen_t len = [ins sockLen];
int acceptReturn = accept(_sock, [ins peerAddr], &len);
_unhandledData = NO;
if (acceptReturn == INVALID_SOCKET)
{
errno = WSAGetLastError();// test for real error