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:
parent
359ebaf43b
commit
b994a309cf
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user