mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-17 04:15:44 +00:00
d/android: Stop thread function when device destoryed
This commit is contained in:
parent
6a61ed5695
commit
52cb2ef123
|
@ -112,7 +112,7 @@ android_run_thread(void *ptr)
|
|||
}
|
||||
|
||||
int ret = 0;
|
||||
while (ret != ALOOPER_POLL_ERROR) {
|
||||
while (d->oth.running && ret != ALOOPER_POLL_ERROR) {
|
||||
ret = ALooper_pollAll(0, NULL, NULL, NULL);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue