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