mirror of https://github.com/D4-project/d4-core
fix: [server] connection lost: avoid none uuid
parent
bfc75e0db8
commit
fb15487773
|
@ -150,6 +150,7 @@ class D4_Server(Protocol, TimeoutMixin):
|
||||||
redis_server_stream.srem('active_connection_extended_type:{}'.format(self.uuid), current_extended_type)
|
redis_server_stream.srem('active_connection_extended_type:{}'.format(self.uuid), current_extended_type)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
if self.uuid:
|
||||||
redis_server_stream.srem('active_connection:{}'.format(self.type), self.uuid)
|
redis_server_stream.srem('active_connection:{}'.format(self.type), self.uuid)
|
||||||
redis_server_stream.srem('active_connection_by_uuid:{}'.format(self.uuid), self.type)
|
redis_server_stream.srem('active_connection_by_uuid:{}'.format(self.uuid), self.type)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue