mirror of https://github.com/BOINC/boinc.git
NeedRunDaemon option should be applied when connecting to localhost only.
This commit fixes a situation when trying to connect to remote client with option 'Run client' on leads to unability to connect to selected client. Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
This commit is contained in:
parent
650127da84
commit
e26acd5c11
|
@ -586,19 +586,17 @@ int CMainDocument::OnPoll() {
|
|||
pFrame->OnExit(event); // Exit if Select Computer dialog cancelled
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (wxGetApp().GetNeedRunDaemon()) {
|
||||
if (IsComputerNameLocal(hostName)) {
|
||||
if (wxGetApp().GetNeedRunDaemon()) {
|
||||
if (m_pClientManager->StartupBOINCCore()) {
|
||||
Connect(wxT("localhost"), portNum, password, TRUE, TRUE);
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
m_pNetworkConnection->ForceDisconnect();
|
||||
pFrame->ShowDaemonStartFailedAlert();
|
||||
}
|
||||
} else {
|
||||
Connect(hostName, portNum, password, TRUE, password.IsEmpty());
|
||||
}
|
||||
} else {
|
||||
Connect(hostName, portNum, password, TRUE, password.IsEmpty());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue