summaryrefslogtreecommitdiff
path: root/lib/rlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rlib.c')
-rw-r--r--lib/rlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rlib.c b/lib/rlib.c
index 38e8268..5b308d3 100644
--- a/lib/rlib.c
+++ b/lib/rlib.c
@@ -134,7 +134,7 @@ int rlibRun(r_stream* stream, r_script* script, int done)
/* Need some data to work with */
if(!stream->nextIn || !stream->availIn)
- RETURN(R_IN);
+ RETURN(done ? R_DONE : R_IN);
stream->total = 0;