mirror of
https://github.com/Genymobile/scrcpy
synced 2025-08-31 06:15:25 +00:00
Reset current installer process
The current_process field was never reset after an installation is complete. As a consequence, installer_stop() attempted to terminate it, leading to a warning, at best.
This commit is contained in:
@@ -118,6 +118,7 @@ static int run_installer(void *data) {
|
|||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
mutex_lock(installer->mutex);
|
mutex_lock(installer->mutex);
|
||||||
|
installer->current_process = PROCESS_NONE;
|
||||||
while (!installer->stopped && apk_queue_is_empty(&installer->queue)) {
|
while (!installer->stopped && apk_queue_is_empty(&installer->queue)) {
|
||||||
cond_wait(installer->event_cond, installer->mutex);
|
cond_wait(installer->event_cond, installer->mutex);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user