Commit ca22ce6b authored by Antoine Millet's avatar Antoine Millet

Unregistering process now delete object from objectdb if it's not attached to an account.

parent b35d7c3e
......@@ -133,6 +133,12 @@ class CCServer(object):
client = self.search_client_by_connection(connection)
# Unregister objects from database if it have no account attached:
obj = self.objects.get(client.login)
if obj is not None and 'a' not in obj:
if client.login in self._connected:
del self._connected[client.login]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment