ustream: prevent recursive calls to the read callback
[project/libubox.git] / ustream.h
index 9a306180bc20f7ac87ee95b426fddbbba7f05055..b8443e5177eeed7b29f41a67c921fdf1b2e47626 100644 (file)
--- a/ustream.h
+++ b/ustream.h
@@ -114,7 +114,8 @@ struct ustream {
         */
        bool string_data;
        bool write_error;
-       bool eof, eof_write_done;
+       bool eof;
+       uint8_t pending_cb;
 
        enum read_blocked_reason read_blocked;
 };