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

FBS: handler_id is mandatory in requests and notifications, so do not check it

Fixes #1246
上级 95390bd8
...@@ -35,11 +35,6 @@ namespace Channel ...@@ -35,11 +35,6 @@ namespace Channel
} }
this->eventCStr = eventCStrIt->second; this->eventCStr = eventCStrIt->second;
// Handler ID is optional.
if (flatbuffers::IsFieldPresent(this->data, FBS::Notification::Notification::VT_HANDLERID))
{
this->handlerId = this->data->handlerId()->str(); this->handlerId = this->data->handlerId()->str();
} }
}
} // namespace Channel } // namespace Channel
...@@ -106,13 +106,8 @@ namespace Channel ...@@ -106,13 +106,8 @@ namespace Channel
} }
this->methodCStr = methodCStrIt->second; this->methodCStr = methodCStrIt->second;
// Handler ID is optional.
if (flatbuffers::IsFieldPresent(this->data, FBS::Request::Request::VT_HANDLERID))
{
this->handlerId = this->data->handlerId()->str(); this->handlerId = this->data->handlerId()->str();
} }
}
void ChannelRequest::Accept() void ChannelRequest::Accept()
{ {
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论