mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
connect on init, check for in_use on connect
This commit is contained in:
@@ -54,8 +54,12 @@ class DB:
|
||||
|
||||
def __init__(self):
|
||||
self.in_use = False
|
||||
self.connect()
|
||||
|
||||
def connect(self):
|
||||
while self.in_use:
|
||||
continue
|
||||
|
||||
self.in_use = True
|
||||
while True:
|
||||
try:
|
||||
|
Reference in New Issue
Block a user