diff -r c5f855bca10b -r b5cdb27022c8 NonPositionableExternalStream.st --- a/NonPositionableExternalStream.st Wed Aug 10 07:04:17 2016 +0200 +++ b/NonPositionableExternalStream.st Thu Aug 11 06:44:08 2016 +0200 @@ -524,15 +524,19 @@ "return true, if position is at end" (self == StdInStream) ifTrue:[ - OperatingSystem hasConsole ifFalse:[ - ^ true - ] + OperatingSystem hasConsole ifFalse:[ + ^ true + ] ]. "first, wait to avoid blocking on the read. On end of stream or error, readWait will return" self readWaitWithTimeoutMs:nil. + handle isNil ifTrue:[ + "we were closed while waiting - so we are at the end" + ^ true. + ]. ^ super atEnd. !