TLS: check we're not disconnected before Cleartext blow

This commit is contained in:
Ryan Dahl
2010-12-18 15:34:10 -08:00
parent 3cf2cbf904
commit bb27885251

View File

@@ -233,6 +233,7 @@ CleartextStream.prototype._sucker = function(b) {
CleartextStream.prototype._blower = function(pool, offset, length) {
debug('reading from clearOut');
if (!this.pair._ssl) return -1;
return this.pair._ssl.clearOut(pool, offset, length);
};