From 1c7a02429739e4d1b2858ad0fe5114f47a1d2ffa Mon Sep 17 00:00:00 2001 From: Our Air Quality Date: Tue, 2 Jan 2018 12:13:29 -0600 Subject: [PATCH] timers: add core locking assertion to tcp_timer_needed (task #14780) --- src/core/timeouts.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/timeouts.c b/src/core/timeouts.c index de5300ad..4196f9b4 100644 --- a/src/core/timeouts.c +++ b/src/core/timeouts.c @@ -147,6 +147,8 @@ tcpip_tcp_timer(void *arg) void tcp_timer_needed(void) { + LWIP_ASSERT_CORE_LOCKED(); + /* timer is off but needed again? */ if (!tcpip_tcp_timer_active && (tcp_active_pcbs || tcp_tw_pcbs)) { /* enable and start timer */