mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
fix(wpa_supplicant): alter the check for eloop_is_running before wifi_task assertion
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user