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 6941b420b4a26cb6d61a58fb79fe82ee24c5514c..a51f7a5dd7da3013442122de9aad37d3a71d919a 100644 |
--- a/remoting/webapp/crd/js/client_session.js |
+++ b/remoting/webapp/crd/js/client_session.js |
@@ -269,6 +269,8 @@ remoting.ClientSession.prototype.connect = function(host, credentialsProvider) { |
*/ |
remoting.ClientSession.prototype.disconnect = function(error) { |
if (this.isFinished()) { |
+ // Do not send the session-terminate Iq if disconnect() is already called or |
+ // if it is initiated by the host. |
return; |
} |