Skip to content

Commit

Permalink
winebuild fix undone
Browse files Browse the repository at this point in the history
  • Loading branch information
shportix committed Nov 7, 2023
1 parent 4417cf1 commit 1c16653
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/bitmessagemain.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
app_dir = pathmagic.setup()

import depends

depends.check_dependencies()

import helper_sql

Check notice on line 25 in src/bitmessagemain.py

View check run for this annotation

PyBitmessage Code Quality Checks / Code Quality - flake8

F401

'helper_sql' imported but unused
Expand Down Expand Up @@ -50,10 +51,6 @@
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 @@ -87,6 +84,7 @@ def signal_handler(signum, frame):

class Main(object):
"""Main PyBitmessage class"""

def start(self):
"""Start main application"""
# pylint: disable=too-many-statements,too-many-branches,too-many-locals
Expand Down Expand Up @@ -183,12 +181,9 @@ 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 Expand Up @@ -273,8 +268,8 @@ def start(self):
while state.shutdown == 0:
time.sleep(1)
if (
state.testmode
and time.time() - state.last_api_response >= 30
state.testmode
and time.time() - state.last_api_response >= 30
):
self.stop()
elif not state.enableGUI:
Expand Down Expand Up @@ -397,7 +392,6 @@ def main():
if __name__ == "__main__":
main()


# So far, the creation of and management of the Bitmessage protocol and this
# client is a one-man operation. Bitcoin tips are quite appreciated.
# 1H5XaDA6fYENLbknwZyjiYXYPQaFjjLX2u

0 comments on commit 1c16653

Please sign in to comment.