From b7ad4e83bcb113f3f522b3d515e56ff27898f578 Mon Sep 17 00:00:00 2001 From: Lennart kats Date: Thu, 10 Sep 2015 14:18:51 +0000 Subject: [PATCH] Randomize reload time --- plugins/c9.vfs.client/vfs_client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/c9.vfs.client/vfs_client.js b/plugins/c9.vfs.client/vfs_client.js index c3c03b6d..fbeb8195 100644 --- a/plugins/c9.vfs.client/vfs_client.js +++ b/plugins/c9.vfs.client/vfs_client.js @@ -253,7 +253,7 @@ define(function(require, exports, module) { lastError = showError(err.message + ". Please reload this window.", -1); setTimeout(function() { window.location.reload(); - }, 5 * 60 * 1000); + }, (Math.random() * 8) + 2 * 60 * 1000); break; default: lastError = showError(err, -1);