浏览代码

Build fix

Adam Ierymenko 6 年之前
父节点
当前提交
5f11daadf2
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      controller/LFDB.cpp

+ 2 - 1
controller/LFDB.cpp

@@ -108,7 +108,7 @@ LFDB::LFDB(EmbeddedNetworkController *const nc,const Identity &myId,const char *
 					<< "\"MaskingKey\":\"" << controllerAddress << "\","
 					<< "\"MaskingKey\":\"" << controllerAddress << "\","
 					<< "\"Owners\":[\"" << _lfOwnerPublic << "\"]"
 					<< "\"Owners\":[\"" << _lfOwnerPublic << "\"]"
 				<< '}';
 				<< '}';
-			auto resp = htcli.Post("/query",query.str(),"application/json");
+			resp = htcli.Post("/query",query.str(),"application/json");
 			if (resp->status == 200) {
 			if (resp->status == 200) {
 				nlohmann::json results(OSUtils::jsonParse(resp->body));
 				nlohmann::json results(OSUtils::jsonParse(resp->body));
 				if ((results.is_array())&&(results.size() > 0)) {
 				if ((results.is_array())&&(results.size() > 0)) {
@@ -159,6 +159,7 @@ bool LFDB::waitForReady()
 	while (!_ready) {
 	while (!_ready) {
 		std::this_thread::sleep_for(std::chrono::milliseconds(100));
 		std::this_thread::sleep_for(std::chrono::milliseconds(100));
 	}
 	}
+	return true;
 }
 }
 
 
 bool LFDB::isReady()
 bool LFDB::isReady()