Index: remoting/webapp/me2mom/client_session.js |
diff --git a/remoting/webapp/me2mom/client_session.js b/remoting/webapp/me2mom/client_session.js |
index e862afa97ffbc38ab7219acdb0fab7a92092a0b3..e9ae4bf41de14e8a70ae16b6b2a0ceed98879119 100644 |
--- a/remoting/webapp/me2mom/client_session.js |
+++ b/remoting/webapp/me2mom/client_session.js |
@@ -202,6 +202,11 @@ remoting.ClientSession.prototype.removePlugin = function() { |
* @return {void} Nothing. |
*/ |
remoting.ClientSession.prototype.disconnect = function() { |
+ // The plugin won't send a state change notification, so we explicitly log |
+ // the fact that the connection has closed. |
+ this.logToServer.logClientSessionStateChange( |
+ remoting.ClientSession.State.CLOSED, |
+ remoting.ClientSession.ConnectionError.NONE); |
if (remoting.wcs) { |
remoting.wcs.setOnIq(function(stanza) {}); |
this.sendIq_( |