Try to handle end of stream more consistently.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23216 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2006-08-08 13:52:29 +00:00
parent 3156b070fe
commit 3e6649d47d
3 changed files with 27 additions and 9 deletions

View file

@ -840,10 +840,6 @@ else NSLog(@"EVENTS:%x", events.lNetworkEvents);
{
[self _sendEvent: NSStreamEventHasBytesAvailable];
}
if ([self streamStatus] == NSStreamStatusAtEnd)
{
[self _sendEvent: NSStreamEventEndEncountered];
}
}
}
}
@ -1403,10 +1399,6 @@ else NSLog(@"EVENTS:%x", events.lNetworkEvents);
{
[_sibling _sendEvent: NSStreamEventHasBytesAvailable];
}
if ([_sibling streamStatus] == NSStreamStatusAtEnd)
{
[_sibling _sendEvent: NSStreamEventEndEncountered];
}
}
}
}