mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-24 07:09:48 +08:00
Don't treat end-of-document-structure as an error.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user