Chromium Code Reviews| Index: remoting/webapp/session_connector.js |
| diff --git a/remoting/webapp/session_connector.js b/remoting/webapp/session_connector.js |
| index 86eff44973ff2bc36eada5ab96d9c0039c0309ef..c03a528581e79280e5e45574af77c62ee894e317 100644 |
| --- a/remoting/webapp/session_connector.js |
| +++ b/remoting/webapp/session_connector.js |
| @@ -346,6 +346,14 @@ remoting.SessionConnector.prototype.createSessionIfReady_ = function() { |
| return; |
| } |
| + // In some circumstances, the WCS <iframe> can get reloaded, which results |
|
Sergey Ulanov
2013/06/20 02:41:53
Would it be better to put this code in onWcsLoaded
Jamie
2013/06/20 17:32:20
Having it immediately before creating the new plug
|
| + // in a new clientJid and a new callback. In this case, remove the old |
| + // client plugin before instantiating a new one. |
| + if (this.clientSession_) { |
| + this.clientSession_.removePlugin(); |
| + this.clientSession_ = null; |
| + } |
| + |
| var securityTypes = 'third_party,spake2_pair,spake2_hmac,spake2_plain'; |
| this.clientSession_ = new remoting.ClientSession( |
| this.hostJid_, this.clientJid_, this.hostPublicKey_, this.passPhrase_, |