Skip to content

Commit ca8ac5f

Browse files
Bmooijme-no-dev
authored andcommitted
Fix LoadProhibited (me-no-dev#73)
1 parent cacac8f commit ca8ac5f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/AsyncTCP.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,10 @@ static bool _remove_events_with_arg(void * arg){
152152
}
153153

154154
static void _handle_async_event(lwip_event_packet_t * e){
155-
if(e->event == LWIP_TCP_CLEAR){
155+
if(e->arg == NULL){
156+
// do nothing when arg is NULL
157+
//ets_printf("event arg == NULL: 0x%08x\n", e->recv.pcb);
158+
} else if(e->event == LWIP_TCP_CLEAR){
156159
_remove_events_with_arg(e->arg);
157160
} else if(e->event == LWIP_TCP_RECV){
158161
//ets_printf("-R: 0x%08x\n", e->recv.pcb);

0 commit comments

Comments
 (0)