瀏覽代碼

frontend-tools: Detach caption thread if critical failure

Prevents the thread from being considered "active" if a critical failure
occur, so calling the stop function won't be necessary.
jp9000 8 年之前
父節點
當前提交
d32f7c95a2
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      UI/frontend-plugins/frontend-tools/captions.cpp

+ 1 - 0
UI/frontend-plugins/frontend-tools/captions.cpp

@@ -338,6 +338,7 @@ try {
 } catch (HRError err) {
 	error("%s failed: %s (%lX)", __FUNCTION__, err.str, err.hr);
 	CoUninitialize();
+	captions->th.detach();
 }
 
 void obs_captions::start()