Skip to content

Commit

Permalink
Do not ignore ERR event in socket callback
Browse files Browse the repository at this point in the history
  • Loading branch information
laurensmiers committed Jul 7, 2015
1 parent 1a03910 commit 2633e96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pico_bsd_sockets.c
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,7 @@ static void pico_socket_event(uint16_t ev, struct pico_socket *s)
return;
if(!ep || !ep->s || !ep->mutex_lock || !ep->signal )
{
if(ev & (PICO_SOCK_EV_CLOSE | PICO_SOCK_EV_FIN) )
if(ev & (PICO_SOCK_EV_CLOSE | PICO_SOCK_EV_FIN | PICO_SOCK_EV_ERR) )
{
pico_signal_send(pico_signal_select); /* Signal this event globally (e.g. for select()) */
pico_socket_close(s);
Expand Down

0 comments on commit 2633e96

Please sign in to comment.