Skip to content

Commit 1849c39

Browse files
Fix syntax
1 parent 12866a8 commit 1849c39

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tarantool/connection_pool.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ def update_ro_info(self):
206206
def connect(self):
207207
for addr in self.addrs:
208208
key = json.dumps(addr)
209-
self.pool[key]['conn'].connect()
209+
if not self.pool[key]['conn'].connected:
210+
self.pool[key]['conn'].connect()
210211

211212
self.update_ro_info()
212213

0 commit comments

Comments
 (0)