提交 17c7d89c authored 作者: Nazar Mokrynskyi's avatar Nazar Mokrynskyi

Address review comments

上级 31b3177e
...@@ -16,7 +16,7 @@ namespace Channel ...@@ -16,7 +16,7 @@ namespace Channel
{ {
while (static_cast<ChannelSocket*>(handle->data)->CallbackRead()) while (static_cast<ChannelSocket*>(handle->data)->CallbackRead())
{ {
// Read while there are new messages // Read while there are new messages.
} }
} }
...@@ -106,6 +106,7 @@ namespace Channel ...@@ -106,6 +106,7 @@ namespace Channel
{ {
this->consumerSocket->Close(); this->consumerSocket->Close();
} }
if (this->producerSocket) if (this->producerSocket)
{ {
this->producerSocket->Close(); this->producerSocket->Close();
......
...@@ -17,7 +17,7 @@ namespace PayloadChannel ...@@ -17,7 +17,7 @@ namespace PayloadChannel
{ {
while (static_cast<PayloadChannelSocket*>(handle->data)->CallbackRead()) while (static_cast<PayloadChannelSocket*>(handle->data)->CallbackRead())
{ {
// Read while there are new messages // Read while there are new messages.
} }
} }
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论