mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-01-31 11:34:28 +01:00
Fix time-limit early interruption
If a value for --time-limit was set, then the thread was not interrupted on stop (the condvar was not signaled).
This commit is contained in:
@@ -62,6 +62,7 @@ void
|
||||
sc_timeout_stop(struct sc_timeout *timeout) {
|
||||
sc_mutex_lock(&timeout->mutex);
|
||||
timeout->stopped = true;
|
||||
sc_cond_signal(&timeout->cond);
|
||||
sc_mutex_unlock(&timeout->mutex);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user