Permalink
Browse files

Fix last fix fix

  • Loading branch information...
1 parent 45615ce commit a8577e0a7928eb45e8a39e0466ad50899dc74229 @rs committed Sep 14, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 lib/worker.js
View
9 lib/worker.js
@@ -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)

0 comments on commit a8577e0

Please sign in to comment.