diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index 6df837de1..93d5356e0 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -971,6 +971,7 @@ define([ } if ( id == Asc.c_oAscAsyncAction['Disconnect']) { + this._state.timerDisconnect && clearTimeout(this._state.timerDisconnect); this.disableEditing(false, true); this.getApplication().getController('Statusbar').hideDisconnectTip(); this.getApplication().getController('Statusbar').setStatusCaption(this.textReconnect); @@ -1078,7 +1079,7 @@ define([ this.disableEditing(true, true); var me = this; statusCallback = function() { - setTimeout(function(){ + me._state.timerDisconnect = setTimeout(function(){ me.getApplication().getController('Statusbar').showDisconnectTip(); }, me._state.unloadTimer || 0); };