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:
rfm 2006-08-07 20:01:00 +00:00
parent 24251c6439
commit 71148081f7
3 changed files with 22 additions and 1 deletions

View file

@ -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