summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2017-06-13 17:44:50 +0200
committerBenoit Foucher <benoit@zeroc.com>2017-06-13 17:44:50 +0200
commit672a2151b442067a5c54e7b5e0a4b6716d6abb17 (patch)
treea5e43dcb8f9b1b67a0ba46ec8e81595289dd0824 /js
parentPHP build fixes (diff)
downloadice-672a2151b442067a5c54e7b5e0a4b6716d6abb17.tar.bz2
ice-672a2151b442067a5c54e7b5e0a4b6716d6abb17.tar.xz
ice-672a2151b442067a5c54e7b5e0a4b6716d6abb17.zip
Fixed for ICE-8012 - heartbeatCallback non null assert
Diffstat (limited to 'js')
-rw-r--r--js/src/Ice/ConnectionI.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/src/Ice/ConnectionI.js b/js/src/Ice/ConnectionI.js
index 5c631d2e045..4a7ff409382 100644
--- a/js/src/Ice/ConnectionI.js
+++ b/js/src/Ice/ConnectionI.js
@@ -489,6 +489,10 @@ class ConnectionI
setHeartbeatCallback(callback)
{
+ if(this._state >= StateClosed)
+ {
+ return;
+ }
this._heartbeatCallback = callback;
}