From d5ad53dae70b5f85d1dbad0868274f546682b2b7 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Wed, 10 Apr 2019 21:36:43 +1000 Subject: [PATCH] [c-host] stop the capture when stopping threads --- VERSION | 2 +- c-host/src/app.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 442044f9..903033b4 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -a12-145-ge4d8cf2d76+1 \ No newline at end of file +a12-146-ga03075416c+1 \ No newline at end of file diff --git a/c-host/src/app.c b/c-host/src/app.c index 9ff2f632..2337284e 100644 --- a/c-host/src/app.c +++ b/c-host/src/app.c @@ -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: