Comparing version 0.1.3 to 0.1.4
@@ -8,3 +8,3 @@ { | ||
"description": "Smith is an RPC agent system for Node.JS used in architect and vfs.", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"licenses" : [{ | ||
@@ -11,0 +11,0 @@ "type" : "MIT", |
@@ -230,5 +230,7 @@ /* | ||
this.on("connect", onConnect); | ||
this.on("disconnect", onError); | ||
this.on("error", onError); | ||
var timeout; | ||
if (this.connectionTimeout) { | ||
var timeout = setTimeout(onTimeout, this.connectionTimeout); | ||
timeout = setTimeout(onTimeout, this.connectionTimeout); | ||
} | ||
@@ -247,2 +249,3 @@ | ||
function onTimeout() { | ||
reset(); | ||
var err = new Error("ETIMEDOUT: Timeout while waiting for Agent agent to connect."); | ||
@@ -255,2 +258,3 @@ err.code = "ETIMEDOUT"; | ||
self.removeListener("connect", onConnect); | ||
self.removeListener("disconnect", onError); | ||
self.removeListener("error", onError); | ||
@@ -257,0 +261,0 @@ clearTimeout(timeout); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33695
475