Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions dlclivegui/gui/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -2482,6 +2482,18 @@ def _start_inference(self) -> None:
self._update_dlc_controls_enabled()

def _stop_inference(self, show_message: bool = True) -> None:
if self._rec_manager.is_active:
answer = QMessageBox.question(
self,
"Stop inference while recording?",
"This will stop the currently running DLC-live custom processor, if any.\n"
"File saving will not be handled via the standard 'recording stopped' event hooks."
"The processor might still save data now, but it will not be paired with the recording.\n\n"
"Stop inference anyway?",
)
if answer != QMessageBox.Yes:
return

was_active = self._dlc_active
self._dlc_active = False
self._dlc_initialized = False
Expand Down
8 changes: 4 additions & 4 deletions dlclivegui/services/dlc_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,10 @@ def shutdown(self) -> None:
with self._lifecycle_lock:
self._pending_reset = True
self._pending_processor_cleanup = True
logger.warning(
"Shutdown requested but worker thread is still alive; DLCLive instance may not be fully released."
)
return
logger.warning(
"Shutdown requested but worker thread is still alive; DLCLive instance may not be fully released."
)
return

self._cleanup_processor()
Comment thread
deruyter92 marked this conversation as resolved.
self._dlc = None
Expand Down