Comparing version 0.2.3 to 0.2.4
{ | ||
"name": "ataraxia", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "P2P messaging over mesh networks", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -24,2 +24,3 @@ 'use strict'; | ||
clearTimeout(this.helloTimeout); | ||
this.helloTimeout = null; | ||
} | ||
@@ -79,5 +80,6 @@ | ||
// Wait a few seconds for the hello from the other side | ||
this.helloTimeout = setTimeout(() => { | ||
this.socket.destroy(); | ||
}, 5000); | ||
if(this.helloTimeout) { | ||
clearTimeout(this.helloTimeout); | ||
} | ||
this.helloTimeout = setTimeout(() => this.socket.destroy(), 5000); | ||
} | ||
@@ -84,0 +86,0 @@ |
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
16176
10
507