diff options
Diffstat (limited to 'src/network/socket_handler.cpp')
-rw-r--r-- | src/network/socket_handler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/socket_handler.cpp b/src/network/socket_handler.cpp index d774927..3f4c01d 100644 --- a/src/network/socket_handler.cpp +++ b/src/network/socket_handler.cpp @@ -153,7 +153,7 @@ void SocketHandler::on_recv() this->on_connection_close(); this->close(); } - else if (-1 == static_cast<ssize_t>(size)) + else if (-1 == size) { log_warning("Error while reading from socket: " << strerror(errno)); this->on_connection_close(); |