summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/network/poller.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/poller.cpp b/src/network/poller.cpp
index dbea856..708fe23 100644
--- a/src/network/poller.cpp
+++ b/src/network/poller.cpp
@@ -185,7 +185,7 @@ int Poller::poll(const std::chrono::milliseconds& timeout)
auto socket_handler = static_cast<SocketHandler*>(revents[i].data.ptr);
if (revents[i].events & EPOLLIN)
socket_handler->on_recv();
- if (revents[i].events & EPOLLOUT)
+ else if (revents[i].events & EPOLLOUT)
{
if (socket_handler->is_connected())
socket_handler->on_send();