Skip to content

Commit

Permalink
Check if there are no publishers available
Browse files Browse the repository at this point in the history
  • Loading branch information
aeshub committed Nov 22, 2022
1 parent 11a4543 commit b35c3c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@
publishers: List[Thread] = robot.get_telemetry_publishers(
queue=queues.mqtt_queue, robot_id=settings.ROBOT_ID
)
threads.extend(publishers)

if publishers:
threads.extend(publishers)

api: API = injector.get(API)
api_thread: Thread = Thread(target=api.run_app, name="ISAR API", daemon=True)
Expand Down

0 comments on commit b35c3c1

Please sign in to comment.