[fix] fix program cannot exit when click close button due to screen capture thread is running

This commit is contained in:
dijunkun
2024-08-02 14:38:31 +08:00
parent 88cd4aca4a
commit 502a90f121
7 changed files with 34 additions and 13 deletions

View File

@@ -78,6 +78,7 @@ class ScreenCapturerX11 : public ScreenCapturer {
// thread
std::unique_ptr<std::thread> capture_thread_ = nullptr;
std::atomic_bool running_;
};
#endif