2
0
mirror of https://github.com/Genymobile/scrcpy synced 2025-08-30 13:58:08 +00:00

Fix controller cleanup

After commit bfb86ca2c23c29cf768c9216dbfff3a89d5d0b5f, the controller
was not stopped and destroyed on quit.
This commit is contained in:
Romain Vimont 2019-06-07 00:03:21 +02:00
parent ebccb9f6cc
commit eda44b6068

View File

@ -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,