提交 8b084e62 编写于 作者: Y youngowlf

Fix gcc warnings.

上级 b64b43f7
......@@ -335,7 +335,7 @@ private:
if (dispatching)
return;
if (dispatching = !last_dispatch_msg.empty() || recv_msg_buffer.try_dequeue(last_dispatch_msg))
if ((dispatching = !last_dispatch_msg.empty() || recv_msg_buffer.try_dequeue(last_dispatch_msg)))
{
auto begin_time = statistic::now();
stat.dispatch_dealy_sum += begin_time - last_dispatch_msg.begin_time;
......
......@@ -250,7 +250,7 @@ private:
}
}
if (this->sending = !bufs.empty())
if ((this->sending = !bufs.empty()))
{
last_send_msg.front().restart();
asio::async_write(this->next_layer(), bufs, this->make_strand(
......
......@@ -185,7 +185,7 @@ private:
if (!in_strand && this->sending)
return true;
if (this->sending = this->send_msg_buffer.try_dequeue(last_send_msg))
if ((this->sending = this->send_msg_buffer.try_dequeue(last_send_msg)))
{
this->stat.send_delay_sum += statistic::now() - last_send_msg.begin_time;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册