From e182fbd2db3cfcd41ba2d60befe89719c9ef086a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Thu, 29 Aug 2013 20:52:14 +0000 Subject: [PATCH] [INTERPRETER] * BUG: Continue on fixing "stop watching on end of file" algorithm... git-svn-id: svn://localhost/gambas/trunk@5818 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- main/gbx/gbx_stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/gbx/gbx_stream.c b/main/gbx/gbx_stream.c index 4b12aa50e..6862b22ea 100644 --- a/main/gbx/gbx_stream.c +++ b/main/gbx/gbx_stream.c @@ -566,7 +566,7 @@ static void fill_buffer(STREAM *stream, char *addr) if (errno == EINTR) continue; - if (errno == 0) + if (STREAM_eff_read == 0) stop_watching(stream, GB_WATCH_READ); switch(errno)