Remove useless cast
This commit is contained in:
@@ -153,7 +153,7 @@ void SocketHandler::on_recv()
|
|||||||
this->on_connection_close();
|
this->on_connection_close();
|
||||||
this->close();
|
this->close();
|
||||||
}
|
}
|
||||||
else if (-1 == static_cast<ssize_t>(size))
|
else if (-1 == size)
|
||||||
{
|
{
|
||||||
log_warning("Error while reading from socket: " << strerror(errno));
|
log_warning("Error while reading from socket: " << strerror(errno));
|
||||||
this->on_connection_close();
|
this->on_connection_close();
|
||||||
|
|||||||
Reference in New Issue
Block a user