Skip to content

Commit

Permalink
Merge pull request Working-From-Home#118 from whayter/master
Browse files Browse the repository at this point in the history
undo some stupid stuff
  • Loading branch information
ggjulio authored Nov 2, 2021
2 parents f39adbc + 09730ec commit 7db179a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/web/Server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ void Server::routine()
continue;
else if (_fds[i].revents & POLLHUP)
_disconnectDevice(i);
else if (_fds[i].revents & POLLOUT)
_sendResponses(i);
else if (_fds[i].revents & POLLIN)
{
if (_isServerIndex(i))
Expand All @@ -85,6 +83,8 @@ void Server::routine()
_buildResponses(i);
}
}
else if (_fds[i].revents & POLLOUT)
_sendResponses(i);
else
stop(-1);
}
Expand Down

0 comments on commit 7db179a

Please sign in to comment.