If Extensions.close() is called before the handshake is done, don't throw an error, just callback immediately.

This commit is contained in:
James Coglan
2015-02-16 08:53:42 +00:00
parent 6a9e862c07
commit a04471aecc
+1
View File
@@ -138,6 +138,7 @@ var instance = {
},
close: function(callback, context) {
if (!this._pipeline) return callback.call(context);
this._pipeline.close(callback, context);
},