Improve error-handling in PortalService example

This commit is contained in:
Ole André Vadla Ravnås committed 2021-06-10 15:18:30 +02:00
1 parent f256733d0b
commit 7667e9716e
1 file changed
+2 -1
+2 -1
View File
@@ -109,7 +109,8 @@ class Application:
peer = self._peers.pop(connection_id)
for channel in list(peer.memberships):
channel.remove_member(peer)
self._release_nick(peer.nick)
if peer.nick is not None:
self._release_nick(peer.nick)
def _on_authenticated(self, connection_id, session_info):
print("on_authenticated()", connection_id, session_info)