Skip to content

Commit b536544

Browse files
committed
Release initial connection
1 parent abf7b1b commit b536544

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neo4j/v1/direct.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def __init__(self, uri, **config):
6262
self.security_plan = security_plan = SecurityPlan.build(**config)
6363
self.encrypted = security_plan.encrypted
6464
pool = DirectConnectionPool(lambda a: connect(a, security_plan.ssl_context, **config), self.address)
65-
pool.acquire()
65+
pool.release(pool.acquire())
6666
Driver.__init__(self, pool, **config)
6767

6868
def session(self, access_mode=None, **parameters):

0 commit comments

Comments
 (0)