loleaflet: Better to have 'reconnected' signal here

Change-Id: I50c9484bb591d7192977fe49adb75f99d8ee1b08
This commit is contained in:
Pranav Kant 2016-09-23 11:12:52 +05:30
parent 342125b8ea
commit c23b37f352

View file

@ -270,7 +270,7 @@ L.Socket = L.Class.extend({
} else if (textMsg.startsWith('status:')) {
// we are reconnecting ...
this._map._docLayer._onMessage('invalidatetiles: EMPTY', null);
this._map.fire('statusindicator', {statusType: 'finish'});
this._map.fire('statusindicator', {statusType: 'reconnected'});
this._map.setPermission(this._map.options.permission);
}