fix: Max connection limit not applied
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user