File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -594,7 +594,9 @@ def validate_session(
594
594
595
595
async def close_conn (self , reason : Optional [str ]) -> None :
596
596
"""Close this connection with a reason."""
597
- await super ().close_conn (reason )
597
+ if self .closed :
598
+ return
599
+ await self ._close_conn ()
598
600
if reason :
599
601
if self .enabled_for_cmap :
600
602
assert self .listeners is not None
Original file line number Diff line number Diff line change @@ -592,7 +592,9 @@ def validate_session(
592
592
593
593
def close_conn (self , reason : Optional [str ]) -> None :
594
594
"""Close this connection with a reason."""
595
- super ().close_conn (reason )
595
+ if self .closed :
596
+ return
597
+ self ._close_conn ()
596
598
if reason :
597
599
if self .enabled_for_cmap :
598
600
assert self .listeners is not None
You can’t perform that action at this time.
0 commit comments