Debug reconnect issues

This commit is contained in:
yflory
2020-03-11 18:00:46 +01:00
parent a0ab44c82d
commit 7cd3701f26
3 changed files with 10 additions and 1 deletions

View File

@@ -1523,10 +1523,14 @@ define([
channel.bcast("PAD_LEAVE", m);
},
onError: function (err) {
console.error(err); // XXX DEBUG
channel.bcast("PAD_ERROR", err);
Store.leavePad(null, data, function () {});
},
onChannelError: function (err) {
console.warn(err); // XXX DEBUG
channel.bcast("PAD_ERROR", err);
Store.leavePad(null, data, function () {});
},
@@ -2097,6 +2101,8 @@ define([
var driveEventClients = [];
var dropChannel = Store.dropChannel = function (chanId) {
console.error('Drop channel', chanId); // XXX DEBUG
try {
store.messenger.leavePad(chanId);
} catch (e) { console.error(e); }