mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-25 16:10:16 +00:00
afk: Increase timeout from 500 loops to 500ms (time-based)
This should hopefully solve the reliability issues here. Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
40a9444484
commit
321a80c928
1 changed files with 3 additions and 1 deletions
|
@ -722,7 +722,9 @@ int afk_epic_start_interface(afk_epic_ep_t *epic, void *intf, int expected, size
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int tries = 0; tries < 500; tries += 1) {
|
u64 timeout = timeout_calculate(500000);
|
||||||
|
|
||||||
|
while (!timeout_expired(timeout)) {
|
||||||
s64 epic_unit = -1;
|
s64 epic_unit = -1;
|
||||||
char *epic_name = NULL;
|
char *epic_name = NULL;
|
||||||
char *epic_class = NULL;
|
char *epic_class = NULL;
|
||||||
|
|
Loading…
Reference in a new issue