mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-04-19 19:15:08 +00: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:
parent
0d8014be52
commit
5b10650f22
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue