must be it
This commit is contained in:
parent
3331b1ad07
commit
4c9b6b5ebb
|
@ -11,7 +11,6 @@ The PyBitmessage startup script
|
||||||
# yet contain logic to expand into further streams.
|
# yet contain logic to expand into further streams.
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import logging
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import pathmagic
|
import pathmagic
|
||||||
|
@ -51,6 +50,10 @@ from threads import (
|
||||||
addressGenerator, objectProcessor, singleCleaner, singleWorker, sqlThread)
|
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):
|
def signal_handler(signum, frame):
|
||||||
"""Single handler for any signal sent to pybitmessage"""
|
"""Single handler for any signal sent to pybitmessage"""
|
||||||
process = multiprocessing.current_process()
|
process = multiprocessing.current_process()
|
||||||
|
@ -179,9 +182,8 @@ class Main(object):
|
||||||
# The closeEvent should command this thread to exit gracefully.
|
# The closeEvent should command this thread to exit gracefully.
|
||||||
sqlLookup.daemon = False
|
sqlLookup.daemon = False
|
||||||
sqlLookup.start()
|
sqlLookup.start()
|
||||||
while not helper_sql.sql_available:
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
wait_until_sql_available()
|
||||||
|
|
||||||
Inventory() # init
|
Inventory() # init
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user