mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +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
|
#endif
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (current_task_is_wifi_task()) {
|
if (!eloop_is_running()) {
|
||||||
assert(false);
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!eloop_is_running()) {
|
if (current_task_is_wifi_task()) {
|
||||||
|
assert(false);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -239,7 +239,7 @@ TEST_CASE("Test eloop timers run", "[eloop]")
|
|||||||
int fired_before_stop;
|
int fired_before_stop;
|
||||||
|
|
||||||
eloop_test_reset_hooks();
|
eloop_test_reset_hooks();
|
||||||
set_leak_threshold(1000);
|
set_leak_threshold(1200);
|
||||||
eloop_test_wifi_start();
|
eloop_test_wifi_start();
|
||||||
eloop_test_wifi_stop();
|
eloop_test_wifi_stop();
|
||||||
/* Reset memory stats since some is leaked during the first initialization */
|
/* Reset memory stats since some is leaked during the first initialization */
|
||||||
|
|||||||
Reference in New Issue
Block a user