Index: remoting/webapp/me2mom/client_session.js |
diff --git a/remoting/webapp/me2mom/client_session.js b/remoting/webapp/me2mom/client_session.js |
index 9ec8b4c8edceac207a8c39f8f99e545cb8a04667..1e8bfe1181dc6959cef266e4fbf2b8091d774f82 100644 |
--- a/remoting/webapp/me2mom/client_session.js |
+++ b/remoting/webapp/me2mom/client_session.js |
@@ -199,22 +199,22 @@ remoting.ClientSession.prototype.removePlugin = function() { |
remoting.ClientSession.prototype.disconnect = function() { |
if (remoting.wcs) { |
remoting.wcs.setOnIq(function(stanza) {}); |
+ this.sendIq_( |
+ '<cli:iq ' + |
+ 'to="' + this.hostJid + '" ' + |
+ 'type="set" ' + |
+ 'id="session-terminate" ' + |
+ 'xmlns:cli="jabber:client">' + |
+ '<jingle ' + |
+ 'xmlns="urn:xmpp:jingle:1" ' + |
+ 'action="session-terminate" ' + |
+ 'initiator="' + this.clientJid + '" ' + |
+ 'sid="' + this.sessionId + '">' + |
+ '<reason><success/></reason>' + |
+ '</jingle>' + |
+ '</cli:iq>'); |
} |
this.removePlugin(); |
- this.sendIq_( |
- '<cli:iq ' + |
- 'to="' + this.hostJid + '" ' + |
- 'type="set" ' + |
- 'id="session-terminate" ' + |
- 'xmlns:cli="jabber:client">' + |
- '<jingle ' + |
- 'xmlns="urn:xmpp:jingle:1" ' + |
- 'action="session-terminate" ' + |
- 'initiator="' + this.clientJid + '" ' + |
- 'sid="' + this.sessionId + '">' + |
- '<reason><success/></reason>' + |
- '</jingle>' + |
- '</cli:iq>'); |
}; |
/** |