diff options
Diffstat (limited to 'loleaflet/src/core/Socket.js')
-rw-r--r-- | loleaflet/src/core/Socket.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/loleaflet/src/core/Socket.js b/loleaflet/src/core/Socket.js index 787a487e6..c2ef985b6 100644 --- a/loleaflet/src/core/Socket.js +++ b/loleaflet/src/core/Socket.js @@ -537,7 +537,8 @@ L.Socket = L.Class.extend({ this._map._docLayer.removeAllViews(); } - if (isActive) { + if (isActive && this._reconnecting) { + // Don't show this before first transparently trying to reconnect. this._map.fire('error', {msg: _('Well, this is embarrassing, we cannot connect to your document. Please try again.'), cmd: 'socket', kind: 'closed', id: 4}); } |