mirror of
https://github.com/kuitoi/kuitoi-Server.git
synced 2026-06-18 14:41:21 +00:00
Minor fix
This commit is contained in:
+11
-5
@@ -288,8 +288,14 @@ class Client:
|
|||||||
self.__Core.clients_by_nick.pop(self.nick)
|
self.__Core.clients_by_nick.pop(self.nick)
|
||||||
else:
|
else:
|
||||||
self.log.debug(f"Removing client; Closing connection...")
|
self.log.debug(f"Removing client; Closing connection...")
|
||||||
if not self.__writer.is_closing():
|
try:
|
||||||
self.__writer.close()
|
if not self.__writer.is_closing():
|
||||||
_, down_w = self._down_rw
|
self.__writer.close()
|
||||||
if down_w and not down_w.is_closing():
|
except Exception as e:
|
||||||
down_w.close()
|
self.log.debug(f"Error while closing writer: {e}")
|
||||||
|
try:
|
||||||
|
_, down_w = self._down_rw
|
||||||
|
if down_w and not down_w.is_closing():
|
||||||
|
down_w.close()
|
||||||
|
except Exception as e:
|
||||||
|
self.log.debug(f"Error while closing download writer: {e}")
|
||||||
|
|||||||
Reference in New Issue
Block a user