chrome-net
Advanced tools
Comparing version 2.0.1 to 2.1.0
14
index.js
@@ -280,2 +280,14 @@ /** | ||
Socket.prototype.destroySoon = function () { | ||
var self = this | ||
if (self.writable) | ||
self.end() | ||
if (self._writableState.finished) | ||
self.destroy() | ||
else | ||
self.once('finish', self._destroy.bind(self)) | ||
} | ||
/** | ||
@@ -691,3 +703,3 @@ * Returns the bound address, the address family name and port of the socket | ||
if (self._timeoutMs) { | ||
self._timeout = setTimeout(self._onTimeout.bind(self), self.timeoutMs) | ||
self._timeout = setTimeout(self._onTimeout.bind(self), self._timeoutMs) | ||
} | ||
@@ -694,0 +706,0 @@ } |
{ | ||
"name": "chrome-net", | ||
"description": "Use the Node `net` API in Chrome Apps", | ||
"version": "2.0.1", | ||
"version": "2.1.0", | ||
"author": "Feross Aboukhadijeh <feross@feross.org> (http://feross.org/)", | ||
@@ -6,0 +6,0 @@ "bugs": { |
209637
6191