lichao
2021-04-16 94a455aba299af5ffe476560d859dfd007cd5467
src/topic_node.cpp
@@ -245,7 +245,10 @@
bool TopicNode::ClientAsyncRequest(const MsgRequestTopic &req, std::string &out_msg_id, const RequestResultCB &cb)
{
   if (!IsRegistered()) { return false; }
   if (!IsRegistered()) {
      SetLastError(eNotRegistered, "Not Registered.");
      return false;
   }
   const std::string &msg_id(NewMsgId());
@@ -298,6 +301,7 @@
      return sock.Send(&BHTopicCenterAddress(), head, query, onQueryResult);
   } catch (...) {
      SetLastError(eError, "internal error.");
      return false;
   }
}