Skip to content

Commit

Permalink
Fix LoadProhibited (me-no-dev#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bmooij authored and me-no-dev committed Oct 17, 2019
1 parent cacac8f commit ca8ac5f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/AsyncTCP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,10 @@ static bool _remove_events_with_arg(void * arg){
}

static void _handle_async_event(lwip_event_packet_t * e){
if(e->event == LWIP_TCP_CLEAR){
if(e->arg == NULL){
// do nothing when arg is NULL
//ets_printf("event arg == NULL: 0x%08x\n", e->recv.pcb);
} else if(e->event == LWIP_TCP_CLEAR){
_remove_events_with_arg(e->arg);
} else if(e->event == LWIP_TCP_RECV){
//ets_printf("-R: 0x%08x\n", e->recv.pcb);
Expand Down

0 comments on commit ca8ac5f

Please sign in to comment.