mirror of https://github.com/BOINC/boinc.git
Fix initial connection when launch new instance of Manager
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
This commit is contained in:
parent
e26acd5c11
commit
ebca06234a
|
@ -586,14 +586,15 @@ int CMainDocument::OnPoll() {
|
|||
pFrame->OnExit(event); // Exit if Select Computer dialog cancelled
|
||||
}
|
||||
}
|
||||
if (wxGetApp().GetNeedRunDaemon()) {
|
||||
if (m_pClientManager->StartupBOINCCore()) {
|
||||
Connect(wxT("localhost"), portNum, password, TRUE, TRUE);
|
||||
}
|
||||
else {
|
||||
m_pNetworkConnection->ForceDisconnect();
|
||||
pFrame->ShowDaemonStartFailedAlert();
|
||||
}
|
||||
}
|
||||
|
||||
if (wxGetApp().GetNeedRunDaemon() && IsComputerNameLocal(hostName)) {
|
||||
if (m_pClientManager->StartupBOINCCore()) {
|
||||
Connect(wxT("localhost"), portNum, password, TRUE, TRUE);
|
||||
}
|
||||
else {
|
||||
m_pNetworkConnection->ForceDisconnect();
|
||||
pFrame->ShowDaemonStartFailedAlert();
|
||||
}
|
||||
} else {
|
||||
Connect(hostName, portNum, password, TRUE, password.IsEmpty());
|
||||
|
|
Loading…
Reference in New Issue