diff options
author | Benoit Foucher <benoit@zeroc.com> | 2014-09-25 12:24:57 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2014-09-25 12:24:57 +0200 |
commit | 356e14707a342da8102b731503c8f2628c1cc79b (patch) | |
tree | b15b837cad964f6ab3a66670ac6eb89a1d832677 /js/src/Ice/RetryQueue.js | |
parent | Fixed compilation problem with Ruby on OS X (diff) | |
download | ice-356e14707a342da8102b731503c8f2628c1cc79b.tar.bz2 ice-356e14707a342da8102b731503c8f2628c1cc79b.tar.xz ice-356e14707a342da8102b731503c8f2628c1cc79b.zip |
Fixed ICE-5687 - adapterDeactivation test warnings
Diffstat (limited to 'js/src/Ice/RetryQueue.js')
-rw-r--r-- | js/src/Ice/RetryQueue.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/js/src/Ice/RetryQueue.js b/js/src/Ice/RetryQueue.js index e7e95a3fa4e..f0638519a06 100644 --- a/js/src/Ice/RetryQueue.js +++ b/js/src/Ice/RetryQueue.js @@ -20,6 +20,10 @@ var RetryQueue = Class({ }, add: function(outAsync, interval) { + if(this._instance === null) + { + throw new Ice.CommunicatorDestroyedException(); + } var task = new RetryTask(this, outAsync); this._instance.timer().schedule(function() { @@ -29,6 +33,7 @@ var RetryQueue = Class({ }, destroy: function() { + this._instance = null; for(var i = 0; i < this._requests.length; ++i) { this._requests[i].destroy(); |