Skip to content

Commit 1c16653

Browse files
committed
winebuild fix undone
1 parent 4417cf1 commit 1c16653

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

src/bitmessagemain.py

+4-10
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
app_dir = pathmagic.setup()
2020

2121
import depends
22+
2223
depends.check_dependencies()
2324

2425
import helper_sql
@@ -50,10 +51,6 @@
5051
addressGenerator, objectProcessor, singleCleaner, singleWorker, sqlThread)
5152

5253

53-
def wait_until_sql_available():
54-
while not helper_sql.sql_available:
55-
time.sleep(0.25)
56-
5754
def signal_handler(signum, frame):
5855
"""Single handler for any signal sent to pybitmessage"""
5956
process = multiprocessing.current_process()
@@ -87,6 +84,7 @@ def signal_handler(signum, frame):
8784

8885
class Main(object):
8986
"""Main PyBitmessage class"""
87+
9088
def start(self):
9189
"""Start main application"""
9290
# pylint: disable=too-many-statements,too-many-branches,too-many-locals
@@ -183,12 +181,9 @@ def start(self):
183181
sqlLookup.daemon = False
184182
sqlLookup.start()
185183

186-
187-
188184
Inventory() # init
189185

190186
if state.enableObjProc: # Not needed if objproc is disabled
191-
wait_until_sql_available()
192187
shared.reloadMyAddressHashes()
193188
shared.reloadBroadcastSendersForWhichImWatching()
194189

@@ -273,8 +268,8 @@ def start(self):
273268
while state.shutdown == 0:
274269
time.sleep(1)
275270
if (
276-
state.testmode
277-
and time.time() - state.last_api_response >= 30
271+
state.testmode
272+
and time.time() - state.last_api_response >= 30
278273
):
279274
self.stop()
280275
elif not state.enableGUI:
@@ -397,7 +392,6 @@ def main():
397392
if __name__ == "__main__":
398393
main()
399394

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

0 commit comments

Comments
 (0)