From eda44b6068dc44104bb7e1700bc4abfb55d873be Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Fri, 7 Jun 2019 00:03:21 +0200 Subject: [PATCH] Fix controller cleanup After commit bfb86ca2c23c29cf768c9216dbfff3a89d5d0b5f, the controller was not stopped and destroyed on quit. --- app/src/scrcpy.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/scrcpy.c b/app/src/scrcpy.c index f5041902..38ad1ceb 100644 --- a/app/src/scrcpy.c +++ b/app/src/scrcpy.c @@ -364,10 +364,12 @@ scrcpy(const struct scrcpy_options *options) { if (!controller_init(&controller, server.control_socket)) { goto end; } + controller_initialized = true; if (!controller_start(&controller)) { goto end; } + controller_started = true; } if (!screen_init_rendering(&screen, device_name, frame_size,