[Libreoffice-commits] online.git: loleaflet/src

Ashod Nakashian ashod.nakashian at collabora.co.uk
Wed Apr 19 05:22:01 UTC 2017


 loleaflet/src/core/Socket.js |    3 ---
 1 file changed, 3 deletions(-)

New commits:
commit 175f4d995f6d9f54766bd89336ff3255f982ae1c
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date:   Wed Apr 19 01:01:16 2017 -0400

    loleaflet: no need to tell the user when doc is unloading
    
    This is rare and should take a few short seconds
    to save and then we can load as normal.
    
    Since the client auto-reconnects anyway, no
    need to tell the user to try again.
    
    Change-Id: I51a7ad207edec3203933a1808288870e69699952
    Reviewed-on: https://gerrit.libreoffice.org/36655
    Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
    Tested-by: Ashod Nakashian <ashnakash at gmail.com>

diff --git a/loleaflet/src/core/Socket.js b/loleaflet/src/core/Socket.js
index 31b4ca86..03643901 100644
--- a/loleaflet/src/core/Socket.js
+++ b/loleaflet/src/core/Socket.js
@@ -364,9 +364,6 @@ L.Socket = L.Class.extend({
 			} else if (errorKind.startsWith('docunloading')) {
 				// The document is unloading. Have to wait a bit.
 				this._map._active = false;
-				if (vex.dialogID <= 0 && this.ReconnectCount > 0) {
-					this._map.fire('error', {msg: _('The document is currently unloading. Please try again.'), cmd: 'socket', kind: 'closed', id: 4});
-				}
 
 				if (this.ReconnectCount++ >= 10) {
 					clearTimeout(vex.timer);


More information about the Libreoffice-commits mailing list