Fix controller cleanup
After commit bfb86ca2c2
, the controller
was not stopped and destroyed on quit.
This commit is contained in:
parent
ebccb9f6cc
commit
eda44b6068
1 changed files with 2 additions and 0 deletions
|
@ -364,10 +364,12 @@ scrcpy(const struct scrcpy_options *options) {
|
||||||
if (!controller_init(&controller, server.control_socket)) {
|
if (!controller_init(&controller, server.control_socket)) {
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
controller_initialized = true;
|
||||||
|
|
||||||
if (!controller_start(&controller)) {
|
if (!controller_start(&controller)) {
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
controller_started = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!screen_init_rendering(&screen, device_name, frame_size,
|
if (!screen_init_rendering(&screen, device_name, frame_size,
|
||||||
|
|
Loading…
Reference in a new issue