Guard against synchronous waitFor

pull/1/head
yflory 4 years ago
parent 794589ac7e
commit e3b823155d

@ -398,7 +398,8 @@ define([
};
var checkTeamChannels = function (ctx, id, channel, roster, waitFor, cb) {
var checkTeamChannels = function (ctx, id, channel, roster, waitFor, _cb) {
var cb = Util.once(Util.mkAsync(_cb));
var close = function () {
if (ctx.cache[id] || ctx.teams[id]) { closeTeam(ctx, id); }
delete ctx.store.proxy.teams[id];

Loading…
Cancel
Save