Skip to content

Commit

Permalink
winebuild fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shportix committed Nov 3, 2023
1 parent b396ab2 commit 4417cf1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/bitmessagemain.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import depends
depends.check_dependencies()

import helper_sql
import getopt
import multiprocessing
# Used to capture a Ctrl-C keypress so that Bitmessage can shutdown gracefully.
Expand Down Expand Up @@ -49,6 +50,10 @@
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()
Expand Down Expand Up @@ -178,9 +183,12 @@ def start(self):
sqlLookup.daemon = False
sqlLookup.start()



Inventory() # init

if state.enableObjProc: # Not needed if objproc is disabled
wait_until_sql_available()
shared.reloadMyAddressHashes()
shared.reloadBroadcastSendersForWhichImWatching()

Expand Down

0 comments on commit 4417cf1

Please sign in to comment.