fix: Max connection limit not applied

This commit is contained in:
yuanyuanxiang
2024-12-31 03:11:26 +08:00
parent 943c269700
commit 9561a5d09d
5 changed files with 19 additions and 1 deletions

View File

@@ -860,9 +860,14 @@ void CMy2015RemoteDlg::OnNotifyExit()
//<2F><>̬<EFBFBD>˵<EFBFBD>
void CMy2015RemoteDlg::OnMainSet()
{
int nMaxConnection = ((CMy2015RemoteApp*)AfxGetApp())->m_iniFile.GetInt("settings", "MaxConnection");
CSettingDlg Dlg;
Dlg.DoModal(); //ģ̬ <20><><EFBFBD><EFBFBD>
if (nMaxConnection != Dlg.m_nMax_Connect)
{
m_iocpServer->UpdateMaxConnection(Dlg.m_nMax_Connect);
}
}