lichao
2021-06-30 ae17d1439b35b55212c3a30712e0a60b1d6a99c0
src/topic_node.cpp
@@ -649,7 +649,7 @@
// subscribe
bool TopicNode::Subscribe(MsgTopicList &topics, MsgCommonReply &reply_body, const int timeout_ms)
bool TopicNode::DoSubscribe(MsgTopicList &topics, const bool net, MsgCommonReply &reply_body, const int timeout_ms)
{
   if (!IsOnline()) {
      SetLastError(eNotRegistered, kErrMsgNotRegistered);
@@ -659,6 +659,7 @@
   try {
      auto &sock = SockSub();
      MsgSubscribe sub;
      sub.set_network(net);
      sub.mutable_topics()->Swap(&topics);
      BHMsgHead head(InitMsgHead(GetType(sub), proc_id(), ssn()));