1
This commit is contained in:
parent
f937b70cca
commit
0ff0ffc565
@ -351,7 +351,7 @@ void App::ProcessClientMsg(f8::MsgHdr& hdr)
|
|||||||
}
|
}
|
||||||
if (hdr.msgid == ss::_SS_CMLogin || hdr.msgid == ss::_SS_CMReconnect) {
|
if (hdr.msgid == ss::_SS_CMLogin || hdr.msgid == ss::_SS_CMReconnect) {
|
||||||
auto down_wp = DownStreamMgr::Instance()->GetGameClientBySocket(hdr.socket_handle);
|
auto down_wp = DownStreamMgr::Instance()->GetGameClientBySocket(hdr.socket_handle);
|
||||||
if (auto down = down_wp.lock(); !down_wp.expired()) {
|
if (down_wp.expired()) {
|
||||||
switch (hdr.msgid) {
|
switch (hdr.msgid) {
|
||||||
case ss::_SS_CMLogin:
|
case ss::_SS_CMLogin:
|
||||||
{
|
{
|
||||||
|
@ -13,17 +13,13 @@ void JsonDataMgr::Init()
|
|||||||
|
|
||||||
if (!f8::IsOnlineEnv()) {
|
if (!f8::IsOnlineEnv()) {
|
||||||
if (f8::IsTestEnv()) {
|
if (f8::IsTestEnv()) {
|
||||||
work_path_ = a8::Format("/root/pub/%d/%d/conf_test/game%d/wsproxy.test",
|
work_path_ = a8::Format("../../../conf_test/game%d/wsproxy.test",
|
||||||
{
|
{
|
||||||
GAME_ID,
|
GAME_ID,
|
||||||
App::Instance()->instance_id,
|
|
||||||
GAME_ID
|
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
work_path_ = a8::Format("/root/pub/%d/%d/conf_test/game%d/wsproxy.dev",
|
work_path_ = a8::Format("../../../conf_test/game%d/wsproxy.dev",
|
||||||
{
|
{
|
||||||
GAME_ID,
|
|
||||||
App::Instance()->instance_id,
|
|
||||||
GAME_ID
|
GAME_ID
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -53,7 +53,7 @@ std::weak_ptr<UpStream> UpStreamMgr::RecreateUpStream(const std::string& host, i
|
|||||||
if (!GetConnByKey(key).expired()) {
|
if (!GetConnByKey(key).expired()) {
|
||||||
return GetConnByKey(key);
|
return GetConnByKey(key);
|
||||||
}
|
}
|
||||||
while (GetConnById(++curr_id_).expired()) {};
|
while (!GetConnById(++curr_id_).expired()) {};
|
||||||
int instance_id = curr_id_;
|
int instance_id = curr_id_;
|
||||||
std::string remote_ip = host;
|
std::string remote_ip = host;
|
||||||
int remote_port = port;
|
int remote_port = port;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user