Clean up
authorRyan Dahl <ry@tinyclouds.org>
Thu, 3 Feb 2011 20:28:20 +0000 (12:28 -0800)
committerRyan Dahl <ry@tinyclouds.org>
Thu, 3 Feb 2011 20:28:20 +0000 (12:28 -0800)
lib/tls.js

index 6204a9c..afca4c6 100644 (file)
@@ -289,8 +289,9 @@ CryptoStream.prototype._pull = function() {
         // TODO check if we get EAGAIN From shutdown, would have to do it
         // again. should unshift END_OF_FILE back onto pending and wait for
         // next cycle.
+
+        this.pair.encrypted._destroyAfterPush = true;
       }
-      this.pair.encrypted._destroyAfterPush = true;
       this.pair._cycle();
       this._done()
       return;