Explorar o código

don't push empty responses

Gil Pedersen %!s(int64=13) %!d(string=hai) anos
pai
achega
1760b2f5a7
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      lib/reader.js

+ 3 - 1
lib/reader.js

@@ -50,7 +50,9 @@ function checknext(reader) {
       if (seq === state.nextSeq)
         state.nextSeq++;
 
-      state.active = reader.push(object);
+      if (object)
+        state.active = reader.push(object);
+
       checknext(reader);
     });
   } else if (index.ended) {