Fixed errors when disconnecting from channels. Resolves #560.

This commit is contained in:
Griatch 2014-08-31 08:56:28 +02:00
parent 58502b42df
commit 6304e7a068
2 changed files with 3 additions and 3 deletions

View file

@ -411,7 +411,7 @@ class ChannelDB(TypedObject):
if not disconnect:
return False
# disconnect
self.db_subscriptions.remove(player)
self.db_subscriptions.remove(player.dbobj)
# post-disconnect hook
self.typeclass.post_leave_channel(player.dbobj)
return True