Fix time differences (add 1 second)

This commit is contained in:
Amish Shah
2016-08-19 18:47:56 +01:00
parent f012655e53
commit c2e3d2b8ca

View File

@@ -64,7 +64,7 @@ module.exports = class SequentialRequestHandler extends RequestHandler {
setTimeout(() => {
this.waiting = false;
resolve(data);
}, (this.requestResetTime - Date.now()) + this.timeDifference - 1000);
}, (this.requestResetTime - Date.now()) + this.timeDifference + 1000);
} else {
this.waiting = false;
resolve(data);