Skip to content

Commit

Permalink
heal fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ivelin committed Sep 22, 2019
1 parent e3b3bd5 commit a190f5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/ambianic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ def _heartbeat():
log.info('Service exit requested.')
log.debug('Cleaning up before exit...')
# Terminate the running threads.
# Set the shutdown flag on each thread to trigger a clean shutdown of each thread.
# Set the shutdown flag on each thread to trigger
# a clean shutdown of each thread.
# j1.shutdown_flag.set()
# j2.shutdown_flag.set()
_stop_servers(servers)
Expand Down
3 changes: 1 addition & 2 deletions src/ambianic/pipeline/avsource/gst_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,7 @@ def _gst_cleanup(self):

def _service_shutdown(self, signum, frame):
log.info('GST service caught system shutdown signal %d', signum)
if not self._stop_signal.is_set():
self._stop_signal.set()
self._gst_cleanup()

def _stop_handler(self):
self._stop_signal.wait()
Expand Down

0 comments on commit a190f5a

Please sign in to comment.