Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix last fix fix

  • Loading branch information...
commit a8577e0a7928eb45e8a39e0466ad50899dc74229 1 parent 45615ce
Olivier Poitrey authored

Showing 1 changed file with 5 additions and 4 deletions. Show diff stats Hide diff stats

  1. +5 4 lib/worker.js
9 lib/worker.js
@@ -142,10 +142,6 @@ Worker.prototype.join = function(namespace, client, uuid)
142 142 if ('incrementTimeout' in client)
143 143 {
144 144 clearTimeout(client.incrementTimeout);
145   - if (client.hasOwnProperty('maxDurationTimeout'))
146   - {
147   - clearTimeout(client.maxDurationTimeout);
148   - }
149 145 }
150 146 else
151 147 {
@@ -156,6 +152,11 @@ Worker.prototype.join = function(namespace, client, uuid)
156 152 {
157 153 delete self.clientRegistry[uuid];
158 154 }
  155 +
  156 + if (client.hasOwnProperty('maxDurationTimeout'))
  157 + {
  158 + clearTimeout(client.maxDurationTimeout);
  159 + }
159 160 });
160 161 // If uuid is provided, ensure only one client with same uuid is connected to this namespace
161 162 if (uuid)

0 comments on commit a8577e0

Please sign in to comment.
Something went wrong with that request. Please try again.