File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -181,12 +181,6 @@ def __init__(self, socket_read_size: int):
181
181
self ._read_size = socket_read_size
182
182
self ._connected = False
183
183
184
- def __del__ (self ):
185
- try :
186
- self .on_disconnect ()
187
- except Exception :
188
- pass
189
-
190
184
@classmethod
191
185
def parse_error (cls , response : str ) -> ResponseError :
192
186
"""Parse an error response"""
@@ -570,18 +564,6 @@ def repr_pieces(self):
570
564
pieces .append (("client_name" , self .client_name ))
571
565
return pieces
572
566
573
- def __del__ (self ):
574
- try :
575
- if self .is_connected :
576
- loop = asyncio .get_running_loop ()
577
- coro = self .disconnect ()
578
- if loop .is_running ():
579
- loop .create_task (coro )
580
- else :
581
- loop .run_until_complete (coro )
582
- except Exception :
583
- pass
584
-
585
567
@property
586
568
def is_connected (self ):
587
569
return self ._reader is not None and self ._writer is not None
You can’t perform that action at this time.
0 commit comments