mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-25 06:32:29 +00:00
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:
parent
3e6649d47d
commit
2006facfbc
3 changed files with 47 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue