mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
fix for handling stream connection failures
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23213 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
24251c6439
commit
71148081f7
3 changed files with 22 additions and 1 deletions
|
@ -794,6 +794,11 @@ static void setNonblocking(SOCKET fd)
|
|||
if (error)
|
||||
errno = error;
|
||||
[self _recordError];
|
||||
if (_sibling)
|
||||
{
|
||||
[_sibling _recordError];
|
||||
[_sibling _sendEvent: NSStreamEventOpenCompleted];
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -1350,6 +1355,11 @@ static void setNonblocking(SOCKET fd)
|
|||
if (error)
|
||||
errno = error;
|
||||
[self _recordError];
|
||||
if (_sibling)
|
||||
{
|
||||
[_sibling _recordError];
|
||||
[_sibling _sendEvent: NSStreamEventOpenCompleted];
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue