We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca615ac commit 452571bCopy full SHA for 452571b
1 file changed
lib/timers.js
@@ -157,15 +157,8 @@ exports.enroll = function(item, msecs) {
157
// it will reset its timeout.
158
exports.active = function(item) {
159
var msecs = item._idleTimeout;
160
- if (msecs >= 0) {
161
- var list = lists[msecs];
162
- if (!list || L.isEmpty(list)) {
163
- insert(item, msecs);
164
- } else {
165
- item._idleStart = Timer.now();
166
- L.append(list, item);
167
- }
168
+ if (msecs >= 0)
+ insert(item, msecs);
169
};
170
171
0 commit comments