Networking: Fix a copy/paste error introduced with recent disconnection changes.

This commit is contained in:
Gregory Nutt 2017-09-01 11:56:48 -06:00
parent fe7d8c941c
commit 8c2e3a2d0a
1 changed files with 4 additions and 4 deletions

View File

@ -125,7 +125,7 @@ static uint16_t tcp_poll_eventhandler(FAR struct net_driver_s *dev,
{ {
/* Mark that the connection has been lost */ /* Mark that the connection has been lost */
tcp_lost_connection(info->psock, pstate->cb, flags); tcp_lost_connection(info->psock, info->cb, flags);
eventset |= (POLLERR | POLLHUP); eventset |= (POLLERR | POLLHUP);
} }
@ -135,9 +135,9 @@ static uint16_t tcp_poll_eventhandler(FAR struct net_driver_s *dev,
{ {
/* Stop further callbacks */ /* Stop further callbacks */
pstate->cb->flags = 0; info->cb->flags = 0;
pstate->cb->priv = NULL; info->cb->priv = NULL;
pstate->cb->event = NULL; info->cb->event = NULL;
info->fds->revents |= eventset; info->fds->revents |= eventset;
sem_post(info->fds->sem); sem_post(info->fds->sem);