loleaflet/src/core/Socket.js |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

New commits:
commit 990d65767204bed8d81f51401bf85465f2e2ec8b
Author: Ashod Nakashian <ashod.nakash...@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 <ashnak...@gmail.com>
    Tested-by: Ashod Nakashian <ashnak...@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) {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to