mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-04-26 08:36:28 +00:00
[c-host] stop the capture when stopping threads
This commit is contained in:
parent
a03075416c
commit
d5ad53dae7
@ -202,6 +202,7 @@ bool stopThreads()
|
|||||||
bool ok = true;
|
bool ok = true;
|
||||||
|
|
||||||
app.running = false;
|
app.running = false;
|
||||||
|
app.iface->stop();
|
||||||
|
|
||||||
if (app.frameThread && !os_joinThread(app.frameThread, NULL))
|
if (app.frameThread && !os_joinThread(app.frameThread, NULL))
|
||||||
{
|
{
|
||||||
@ -368,7 +369,6 @@ int app_main()
|
|||||||
}
|
}
|
||||||
|
|
||||||
finish:
|
finish:
|
||||||
iface->stop();
|
|
||||||
stopThreads();
|
stopThreads();
|
||||||
exit:
|
exit:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user