Fix wot make debug console work.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1217 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
Jens Ayton 2007-10-15 14:30:15 +00:00
parent 359ebaf43b
commit b994a309cf

View File

@ -413,6 +413,9 @@ noteChangedConfigrationValue:(in id)newValue
length = [_inStream read:buffer maxLength:kBufferSize];
if (length < 1)
{
// Under GNUstep, but not OS X (currently), -hasBytesAvailable will return YES when the buffer is in fact empty.
if ([_inStream streamStatus] == NSStreamStatusReading) break;
[self breakConnectionWithBadStream:_inStream];
return;
}