aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/systemlib/bson/tinybson.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/systemlib/bson/tinybson.c b/apps/systemlib/bson/tinybson.c
index 46ced013d..10b736fd6 100644
--- a/apps/systemlib/bson/tinybson.c
+++ b/apps/systemlib/bson/tinybson.c
@@ -106,7 +106,9 @@ bson_decoder_next(bson_decoder_t decoder)
/* if the nesting level is now zero, the top-level document is done */
if (decoder->nesting == 0) {
- CODER_KILL(decoder, "nesting is zero, document is done");
+ /* like kill but not an error */
+ debug("nesting is zero, document is done");
+ decoder->fd = -1;
/* return end-of-file to the caller */
return 0;