Index: remoting/webapp/crd/js/client_session.js |
diff --git a/remoting/webapp/crd/js/client_session.js b/remoting/webapp/crd/js/client_session.js |
index 8a6bdb870f63bcd1b15258e48dc3c7dd16452a25..01d1fc3c347ecadedfaeca2e9803e50fa44921b1 100644 |
--- a/remoting/webapp/crd/js/client_session.js |
+++ b/remoting/webapp/crd/js/client_session.js |
@@ -285,6 +285,10 @@ remoting.ClientSession.prototype.connect = function(host, credentialsProvider) { |
* @return {void} Nothing. |
*/ |
remoting.ClientSession.prototype.disconnect = function(error) { |
+ if (this.isFinished()) { |
+ return; |
+ } |
+ |
this.sendIq_( |
'<cli:iq ' + |
'to="' + this.host_.jabberId + '" ' + |