[Libreoffice-commits] online.git: loleaflet/src
Ashod Nakashian
ashod.nakashian at collabora.co.uk
Mon Feb 13 05:26:05 UTC 2017
loleaflet/src/core/Socket.js | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
New commits:
commit 990d65767204bed8d81f51401bf85465f2e2ec8b
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date: Sun Feb 12 22:59:48 2017 -0500
loleaflet: reconnect silently when disconnected
Change-Id: I7761dcfd283e9b24fd70d255899d438209103a22
Reviewed-on: https://gerrit.libreoffice.org/34193
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 8e8c20c..2bdf94c 100644
--- a/loleaflet/src/core/Socket.js
+++ b/loleaflet/src/core/Socket.js
@@ -493,7 +493,7 @@ L.Socket = L.Class.extend({
this._map.fire('doclayerinit');
} else if (textMsg.startsWith('status:') && this._reconnecting) {
// we are reconnecting ...
- this._reconecting = false;
+ this._reconnecting = false;
this._map._docLayer._onMessage('invalidatetiles: EMPTY', null);
this._map.fire('statusindicator', {statusType: 'reconnected'});
this._map.setPermission(this._map.options.permission);
@@ -540,6 +540,11 @@ L.Socket = L.Class.extend({
// Reset wopi's app loaded so that reconnecting again informs outerframe about initialization again
this._map['wopi'].resetAppLoaded();
+
+ if (!this._reconnecting) {
+ this._reconnecting = true;
+ this._map._activate();
+ }
},
parseServerCmd: function (msg) {
More information about the Libreoffice-commits
mailing list