File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -896,6 +896,7 @@ async def target() -> bool:
896
896
# this closure. When the client is freed, stop the executor soon.
897
897
self_ref : Any = weakref .ref (self , executor .close )
898
898
self ._kill_cursors_executor = executor
899
+ self ._opened = False
899
900
900
901
def _should_pin_cursor (self , session : Optional [ClientSession ]) -> Optional [bool ]:
901
902
return self ._options .load_balanced and not (session and session .in_transaction )
Original file line number Diff line number Diff line change @@ -895,6 +895,7 @@ def target() -> bool:
895
895
# this closure. When the client is freed, stop the executor soon.
896
896
self_ref : Any = weakref .ref (self , executor .close )
897
897
self ._kill_cursors_executor = executor
898
+ self ._opened = False
898
899
899
900
def _should_pin_cursor (self , session : Optional [ClientSession ]) -> Optional [bool ]:
900
901
return self ._options .load_balanced and not (session and session .in_transaction )
You can’t perform that action at this time.
0 commit comments