Skip to content

Commit

Permalink
Prevent a creash on reboot of the multi-instance PrusaLink
Browse files Browse the repository at this point in the history
  • Loading branch information
TojikCZ committed Jan 3, 2025
1 parent d4db7cb commit f8f204b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion prusa/link/multi_instance/ipc_queue_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ def stop(self):
"""Stops the consumer"""
self.running = False
self.ipc_queue_thread.join()
self.ipc_queue.unlink()
try:
self.ipc_queue.unlink()
except posixmq.QueueError:
pass

def _setup_queue(self):
"""Creates the pipe and sets the correct permissions"""
Expand Down

0 comments on commit f8f204b

Please sign in to comment.