diff options
author | Benoit Foucher <benoit@zeroc.com> | 2018-03-26 18:45:09 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2018-03-26 18:45:09 +0200 |
commit | 11163940d1669e5e1f1da23039dbff66557a9b40 (patch) | |
tree | 945252b7a9b1c74afd2d00099e6cde220e78f567 /js/src/Ice/browser/TimerUtil.js | |
parent | Unused variables (diff) | |
download | ice-11163940d1669e5e1f1da23039dbff66557a9b40.tar.bz2 ice-11163940d1669e5e1f1da23039dbff66557a9b40.tar.xz ice-11163940d1669e5e1f1da23039dbff66557a9b40.zip |
Fixed issue with worker Timer and hold test hang when a call failed
Diffstat (limited to 'js/src/Ice/browser/TimerUtil.js')
-rw-r--r-- | js/src/Ice/browser/TimerUtil.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/js/src/Ice/browser/TimerUtil.js b/js/src/Ice/browser/TimerUtil.js index ace32433ab4..4429ce16fee 100644 --- a/js/src/Ice/browser/TimerUtil.js +++ b/js/src/Ice/browser/TimerUtil.js @@ -25,24 +25,24 @@ function createTimerObject() { let Timer = class { - static setTimeout() + static setTimeout(cb, ms) { - setTimeout.apply(null, arguments); + return setTimeout.apply(null, arguments); } - static clearTimeout() + static clearTimeout(id) { - clearTimeout.apply(null, arguments); + return clearTimeout.apply(null, arguments); } static setInterval() { - setInterval.apply(null, arguments); + return setInterval.apply(null, arguments); } static clearInterval() { - clearInterval.apply(null, arguments); + return clearInterval.apply(null, arguments); } }; @@ -50,14 +50,14 @@ function createTimerObject() { Timer.setImmediate = function() { - setImmediate.apply(null, arguments); + return setImmediate.apply(null, arguments); }; } else { Timer.setImmediate = function() { - setTimeout.apply(null, arguments); + return setTimeout.apply(null, arguments); }; } |