bad call and missing call to unregister_comm

Sylvain Corlay 12 years ago
parent a9c34b679b
commit 2c648fe4d0

@ -56,9 +56,9 @@ define([
return comm.comm_id;
};
CommManager.prototype.unregister_comm = function (comm_id) {
CommManager.prototype.unregister_comm = function (comm) {
// Remove a comm from the mapping
delete this.comms[comm_id];
delete this.comms[comm.comm_id];
};
// comm message handlers
@ -88,7 +88,7 @@ define([
if (comm === undefined) {
return;
}
delete this.comms[content.comm_id];
this.unregister_comm(comm);
try {
comm.handle_close(msg);
} catch (e) {

Loading…
Cancel
Save