Commit 930696e4 authored by louiz’'s avatar louiz’

Remove useless cast

parent 601159e8
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment