File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -645,6 +645,7 @@ async def close(self) -> None:
645
645
:exc:`~.errors.InvalidOperation`.
646
646
"""
647
647
async with self ._lock :
648
+ old_td = self ._description
648
649
for server in self ._servers .values ():
649
650
await server .close ()
650
651
@@ -664,7 +665,6 @@ async def close(self) -> None:
664
665
# Publish only after releasing the lock.
665
666
if self ._publish_tp :
666
667
assert self ._events is not None
667
- old_td = self ._description
668
668
self ._description = TopologyDescription (
669
669
TOPOLOGY_TYPE .Unknown ,
670
670
{},
Original file line number Diff line number Diff line change @@ -643,6 +643,7 @@ def close(self) -> None:
643
643
:exc:`~.errors.InvalidOperation`.
644
644
"""
645
645
with self ._lock :
646
+ old_td = self ._description
646
647
for server in self ._servers .values ():
647
648
server .close ()
648
649
@@ -662,7 +663,6 @@ def close(self) -> None:
662
663
# Publish only after releasing the lock.
663
664
if self ._publish_tp :
664
665
assert self ._events is not None
665
- old_td = self ._description
666
666
self ._description = TopologyDescription (
667
667
TOPOLOGY_TYPE .Unknown ,
668
668
{},
You can’t perform that action at this time.
0 commit comments