From 4535e533099589280d8ac01d9f9c94349e28cce7 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 3 Jun 2019 09:50:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=BA=E5=99=A8=E4=BA=BAok?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/robotserver/app.cc | 2 +- server/robotserver/virtualclient.cc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/server/robotserver/app.cc b/server/robotserver/app.cc index 6da18be..652c25f 100755 --- a/server/robotserver/app.cc +++ b/server/robotserver/app.cc @@ -454,7 +454,7 @@ bool App::ParseOpt() break; } } - return instance_id > 0; + return true; } long long App::NewUuid() diff --git a/server/robotserver/virtualclient.cc b/server/robotserver/virtualclient.cc index a03f73c..04e81a7 100644 --- a/server/robotserver/virtualclient.cc +++ b/server/robotserver/virtualclient.cc @@ -23,6 +23,7 @@ void VirtualClient::Init() tcp_client_->on_connect = std::bind(&VirtualClient::on_connect, this, std::placeholders::_1); tcp_client_->on_disconnect = std::bind(&VirtualClient::on_disconnect, this, std::placeholders::_1); tcp_client_->on_socketread = std::bind(&VirtualClient::on_socketread, this ,std::placeholders::_1, std::placeholders::_2, std::placeholders::_3); + tcp_client_->Open(); } void VirtualClient::UnInit()