Re-emit socket error

This commit is contained in:
Aron Woost
2015-11-04 12:04:07 +01:00
parent 176ec0479d
commit b4a22bff64

View File

@@ -88,6 +88,11 @@ Tunnel.prototype._establish = function(info) {
self.emit('url', info.url); self.emit('url', info.url);
}); });
// re-emit socket error
tunnels.on('error', function(err) {
self.emit('error', err);
});
var tunnel_count = 0; var tunnel_count = 0;
// track open count // track open count