Skip to content

Commit 67a7537

Browse files
committed
Improved timers.
1 parent 2c37416 commit 67a7537

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

debug.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,17 +248,18 @@ function runwatching() {
248248
}, function() {
249249

250250
isLoaded = true;
251-
setTimeout(refresh_directory, speed);
252251

253252
if (status !== 1 || !force) {
254253
if (counter % 150 === 0)
255254
speed = 6000;
255+
setTimeout(refresh_directory, speed);
256256
return;
257257
}
258258

259259
restart();
260260
counter = 0;
261261
speed = SPEED;
262+
setTimeout(refresh_directory, speed);
262263

263264
var length = changes.length;
264265
for (var i = 0; i < length; i++)
@@ -385,7 +386,7 @@ function runwatching() {
385386
process.exit(0);
386387
});
387388

388-
}, 2000);
389+
}, 3000);
389390
}
390391

391392
restart();
@@ -395,7 +396,7 @@ function runwatching() {
395396
var filename = Path.join(directory, 'debug.pid');
396397
if (Fs.existsSync(filename)) {
397398
Fs.unlinkSync(filename);
398-
setTimeout(app, 2500);
399+
setTimeout(app, 3500);
399400
} else
400401
app();
401402
}

0 commit comments

Comments
 (0)