Skip to content

Commit 8c904bb

Browse files
committed
Reverse order of routing table remove and pool remove
1 parent 96fcb55 commit 8c904bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neo4j/v1/routing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,9 @@ def remove(self, address):
276276
""" Remove an address from the connection pool, if present, closing
277277
all connections to that address. Also remove from the routing table.
278278
"""
279-
super(RoutingConnectionPool, self).remove(address)
280279
# We use `discard` instead of `remove` here since the former
281280
# will not fail if the address has already been removed.
282281
self.routing_table.routers.discard(address)
283282
self.routing_table.readers.discard(address)
284283
self.routing_table.writers.discard(address)
284+
super(RoutingConnectionPool, self).remove(address)

0 commit comments

Comments
 (0)