[c-host] stop the capture when stopping threads
This commit is contained in:
1 parent
a03075416c
commit
d5ad53dae7
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -202,6 +202,7 @@ bool stopThreads()
|
||||
bool ok = true;
|
||||
|
||||
app.running = false;
|
||||
app.iface->stop();
|
||||
|
||||
if (app.frameThread && !os_joinThread(app.frameThread, NULL))
|
||||
{
|
||||
@@ -368,7 +369,6 @@ int app_main()
|
||||
}
|
||||
|
||||
finish:
|
||||
iface->stop();
|
||||
stopThreads();
|
||||
exit:
|
||||
|
||||
|
||||
Reference in new issue
Block a user