must be it

This commit is contained in:
shportix 2023-11-03 18:10:02 +02:00
parent 3331b1ad07
commit 4c9b6b5ebb
No known key found for this signature in database
GPG Key ID: 2594F3870220CC1E

View File

@ -11,7 +11,6 @@ The PyBitmessage startup script
# yet contain logic to expand into further streams.
import os
import sys
import logging
try:
import pathmagic
@ -51,6 +50,10 @@ from threads import (
addressGenerator, objectProcessor, singleCleaner, singleWorker, sqlThread)
def wait_until_sql_available():
while not helper_sql.sql_available:
time.sleep(0.25)
def signal_handler(signum, frame):
"""Single handler for any signal sent to pybitmessage"""
process = multiprocessing.current_process()
@ -179,9 +182,8 @@ class Main(object):
# The closeEvent should command this thread to exit gracefully.
sqlLookup.daemon = False
sqlLookup.start()
while not helper_sql.sql_available:
pass
wait_until_sql_available()
Inventory() # init