added user/left notificationcenter trigger, because bodies on the server were not destroyed when user disconnected

This commit is contained in:
Logsol 2013-01-05 21:32:19 +01:00
parent 9d23898018
commit a852bccae6

View file

@ -55,6 +55,7 @@
Channel.prototype.onReleaseUser = function (userId) {
var user = this.users[userId];
this.sendControlCommandToAllUsersExcept("userLeft", user.id, user);
NotificationCenter.trigger('user/left', user);
delete this.users[user.id];
}