| Index: remoting/webapp/crd/js/smart_reconnector.js
|
| diff --git a/remoting/webapp/crd/js/smart_reconnector.js b/remoting/webapp/crd/js/smart_reconnector.js
|
| index d7e331b666d56f212ed6097fdbf26436f8de68dc..15973323fda52c8e206f903adcc4526ff078508a 100644
|
| --- a/remoting/webapp/crd/js/smart_reconnector.js
|
| +++ b/remoting/webapp/crd/js/smart_reconnector.js
|
| @@ -20,16 +20,21 @@ var remoting = remoting || {};
|
| /**
|
| * @constructor
|
| * @param {function()} reconnectCallback
|
| + * @param {function()} disconnectCallback
|
| * @param {remoting.ClientSession} clientSession This represents the current
|
| * remote desktop connection. It is used to monitor the changes in
|
| * connection state.
|
| * @implements {base.Disposable}
|
| */
|
| -remoting.SmartReconnector = function(reconnectCallback, clientSession) {
|
| +remoting.SmartReconnector =
|
| + function(reconnectCallback, disconnectCallback, clientSession) {
|
| /** @private */
|
| this.reconnectCallback_ = reconnectCallback;
|
|
|
| /** @private */
|
| + this.disconnectCallback_ = disconnectCallback;
|
| +
|
| + /** @private */
|
| this.clientSession_ = clientSession;
|
|
|
| /** @private */
|
| @@ -67,7 +72,7 @@ remoting.SmartReconnector.kConnectionTimeout = 10000;
|
| remoting.SmartReconnector.prototype = {
|
| reconnect_: function() {
|
| this.cancelPending_();
|
| - remoting.app.disconnect();
|
| + this.disconnectCallback_();
|
| remoting.setMode(remoting.AppMode.CLIENT_CONNECTING);
|
| this.reconnectCallback_();
|
| },
|
|
|