fix(wpa_supplicant): alter the check for eloop_is_running before wifi_task assertion

This commit is contained in:
Shreyas Sheth
2026-05-11 12:32:24 +05:30
parent a14702b848
commit a6fbe48779
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -510,12 +510,12 @@ int eloop_register_timeout_blocking(eloop_blocking_timeout_handler handler,
#endif
int ret;
if (current_task_is_wifi_task()) {
assert(false);
if (!eloop_is_running()) {
return -1;
}
if (!eloop_is_running()) {
if (current_task_is_wifi_task()) {
assert(false);
return -1;
}
@@ -239,7 +239,7 @@ TEST_CASE("Test eloop timers run", "[eloop]")
int fired_before_stop;
eloop_test_reset_hooks();
set_leak_threshold(1000);
set_leak_threshold(1200);
eloop_test_wifi_start();
eloop_test_wifi_stop();
/* Reset memory stats since some is leaked during the first initialization */