check if wificollecctor war running before it is removed from the dom

This commit is contained in:
Jenny Danzmayr 2018-12-22 08:02:12 +01:00
parent 52a27eec3e
commit eff4214121

View file

@ -135,11 +135,12 @@ editor = {
editor._fixed_point_layer = null;
}
$('#sidebar').addClass('loading').find('.content').html('');
editor._cancel_editing();
if (window.mobileclient && mobileclient.wificollectorStop && $('#sidebar').find('.wificollector.running').length) {
mobileclient.wificollectorStop();
}
$('#sidebar').addClass('loading').find('.content').html('');
editor._cancel_editing();
},
_fill_level_control: function (level_control, level_list) {
var levels = level_list.find('a');