先配置地址再打开微网客户端

This commit is contained in:
nnhy 2015-10-26 03:10:33 +00:00
parent 732d46e433
commit 0e05373a61
1 changed files with 3 additions and 3 deletions

View File

@ -38,9 +38,6 @@ void TinyClient::Open()
Control->Received = OnClientReceived;
Control->Param = this;
Control->Mode = 0; // 客户端只接收自己的消息
Control->Open();
TranID = (int)Time.Current();
_TaskID = Sys.AddTask(TinyClientTask, this, 0, 5000, "客户端服务");
@ -52,6 +49,9 @@ void TinyClient::Open()
Password.Load(Cfg->Password, ArrayLength(Cfg->Password));
}
Control->Mode = 0; // 客户端只接收自己的消息
Control->Open();
}
void TinyClient::Close()