Little fix in databases
This commit is contained in:
parent
7e4a188848
commit
41462b3bda
1 changed files with 3 additions and 0 deletions
|
|
@ -38,6 +38,9 @@ class SqlClass:
|
||||||
|
|
||||||
self.conn=SqlClass.mypool.connect()
|
self.conn=SqlClass.mypool.connect()
|
||||||
|
|
||||||
|
while not self.conn.open:
|
||||||
|
self.conn=SqlClass.mypool.connect()
|
||||||
|
|
||||||
self.conn.ping(True)
|
self.conn.ping(True)
|
||||||
|
|
||||||
self.connected=True
|
self.connected=True
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue