提交 a2421d5e authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Code cleanup

上级 821248d9
......@@ -395,11 +395,7 @@ void TcpConnection::onUvShutdown(uv_shutdown_t* req, int status)
delete req;
if (status == UV_EPIPE || status == UV_ENOTCONN || status == UV_ECANCELED)
{
MS_WARN_DEV("shutdown error: %s", uv_strerror(status));
}
else if (status)
if (status)
{
MS_WARN_DEV("shutdown error: %s", uv_strerror(status));
}
......
......@@ -278,11 +278,7 @@ void UnixStreamSocket::onUvShutdown(uv_shutdown_t* req, int status)
delete req;
if (status == UV_EPIPE || status == UV_ENOTCONN || status == UV_ECANCELED)
{
MS_ERROR_STD("shutdown error: %s", uv_strerror(status));
}
else if (status)
if (status)
{
MS_ERROR_STD("shutdown error: %s", uv_strerror(status));
}
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论