msg.Stat 为空时 直接调用 Port->Write(buff) 而不是去调用 Port->Write(buff,void *)

This commit is contained in:
WangQiang 2016-06-06 09:19:08 +00:00
parent b138be437b
commit 8a8aecb0a0
1 changed files with 4 additions and 1 deletions

View File

@ -172,5 +172,8 @@ bool Controller::SendInternal(const Message& msg)
bool Controller::SendInternal(const Buffer& bs, const void* state)
{
if (state == nullptr)
return Port->Write(bs);
else
return Port->Write(bs, state);
}