Comparing version 1.0.1 to 1.0.2
@@ -608,5 +608,15 @@ /* | ||
/* If there are idle connections sitting around, take one. */ | ||
if (this.p_idleq.length > 0) { | ||
while (this.p_idleq.length > 0) { | ||
var fsm = this.p_idleq.shift(); | ||
delete (fsm.p_idleq_node); | ||
/* | ||
* Since 'stateChanged' is emitted async from mooremachine, | ||
* things may be on the idle queue still but not actually idle. | ||
* If we find one, just rip it off the queue (which we've | ||
* already done) and try the next thing. The state mgmt | ||
* callback from addConnection will cope. | ||
*/ | ||
if (!fsm.isInState('idle')) | ||
continue; | ||
fsm.claim(e.stack, function (err, hdl, conn) { | ||
@@ -613,0 +623,0 @@ if (err) { |
{ | ||
"name": "cueball", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
142189
3342