Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix last fix fix

  • Loading branch information...
commit a8577e0a7928eb45e8a39e0466ad50899dc74229 1 parent 45615ce
Olivier Poitrey authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 lib/worker.js
9 lib/worker.js
View
@@ -142,10 +142,6 @@ Worker.prototype.join = function(namespace, client, uuid)
if ('incrementTimeout' in client)
{
clearTimeout(client.incrementTimeout);
- if (client.hasOwnProperty('maxDurationTimeout'))
- {
- clearTimeout(client.maxDurationTimeout);
- }
}
else
{
@@ -156,6 +152,11 @@ Worker.prototype.join = function(namespace, client, uuid)
{
delete self.clientRegistry[uuid];
}
+
+ if (client.hasOwnProperty('maxDurationTimeout'))
+ {
+ clearTimeout(client.maxDurationTimeout);
+ }
});
// If uuid is provided, ensure only one client with same uuid is connected to this namespace
if (uuid)
Please sign in to comment.
Something went wrong with that request. Please try again.