This commit is contained in:
aozhiwei 2022-05-26 20:27:19 +08:00
parent c388dbf87e
commit 14a5149668

View File

@ -203,12 +203,16 @@ GSNode* GSMgr::AllocNode(int channel)
GSNode* n2 = sorted_nodes->at(sorted_nodes->size() - 2);
if (n1->online_num < 100 && n2->online_num < 100) {
if (n1->instance_id < n2->instance_id) {
if (n1->servicing) {
return n1;
}
} else {
if (n2->servicing) {
return n2;
}
}
}
}
int idx = rand() % rnd;
while (idx >= 0) {
if (sorted_nodes->at(idx)->servicing) {