diff --git a/lib/client.js b/lib/client.js
index <HASH>..<HASH> 100644
--- a/lib/client.js
+++ b/lib/client.js
@@ -290,12 +290,12 @@ Client.prototype.resolveFileFromPointers = function(pointers) {
           }
         }
 
-        iteration++;
-        self.push(data);
+        self.emit('data', data);
       };
 
       client.onclose = function() {
-        /* noop */
+        iteration++;
+        self.push(Buffer([]));
       };
 
       client.onerror = function(err) {
fix streaming issues on resolveFileFromPointers