mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
break out of loop if write fails
This commit is contained in:
parent
ed9bb899a7
commit
8b8fe60070
2 changed files with 4 additions and 2 deletions
|
@ -2228,7 +2228,7 @@ NSString * const GSSOCKSRecvAddr = @"GSSOCKSRecvAddr";
|
|||
length: length-writePos];
|
||||
if (written <= 0)
|
||||
{
|
||||
if (written < 0 && WSAGetLastError()!= WSAEINTR
|
||||
if (WSAGetLastError()!= WSAEINTR
|
||||
&& WSAGetLastError()!= WSAEWOULDBLOCK)
|
||||
{
|
||||
NSString *s;
|
||||
|
@ -2238,6 +2238,7 @@ NSString * const GSSOCKSRecvAddr = @"GSSOCKSRecvAddr";
|
|||
[info setObject: s forKey: GSFileHandleNotificationError];
|
||||
[self postWriteNotification];
|
||||
}
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue