Skip to content

Commit

Permalink
Fixing startup issue
Browse files Browse the repository at this point in the history
Per @954
  • Loading branch information
fredclausen committed Sep 21, 2023
1 parent a1a4338 commit fd125dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 3 additions & 2 deletions rootfs/webapp/acarshub.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,8 @@ def init_listeners(special_message=""):
)
thread_scheduler = Thread(target=scheduled_tasks)
thread_scheduler.start()
if not thread_html_generator.is_alive():
# check if 'g' is not in thread_html_generator
if not hasattr(thread_html_generator, "g"):
acarshub_logging.log(
f"{special_message}Starting htmlListener",
"init",
Expand Down Expand Up @@ -736,7 +737,7 @@ def main_connect():
acarshub_logging.acars_traceback(e, "webapp")

# Start the htmlGenerator thread only if the thread has not been started before.
if not thread_html_generator.is_alive():
if not hasattr(thread_html_generator, "g"):
sys.stdout.flush()
thread_html_generator_event.clear()
thread_html_generator = socketio.start_background_task(htmlListener)
Expand Down
3 changes: 1 addition & 2 deletions rootfs/webapp/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
eventlet==0.33.3
Flask==2.3.3
Flask-SocketIO==5.3.6
gunicorn[eventlet] @ git+https://github.com/benoitc/gunicorn.git@48eda22a4b3399b0a65677619b4938503cc207cb
pyrtlsdr==0.3.0
gunicorn[eventlet]==21.2.0
requests==2.31.0
rrdtool==0.1.16
schedule==1.2.0
Expand Down

0 comments on commit fd125dc

Please sign in to comment.