mirror of https://github.com/BOINC/boinc.git
MGR: Reset messages whenver connecting or reconnecting to client
svn path=/trunk/boinc/; revision=15518
This commit is contained in:
parent
0f60f0d42b
commit
48394ceda4
|
@ -5271,3 +5271,12 @@ David 30 June 2008
|
|||
sched_send.C
|
||||
tools/
|
||||
process_results_template.C
|
||||
|
||||
Charlie 30 June 2008
|
||||
- MGR: Reset messages whenver connecting or reconnecting to client. Fixes 2
|
||||
bugs: stale messages if client on remote host was stopped and restarted
|
||||
while local manager was connected to it but minimized, and stale messages
|
||||
when local client exited and was automatically restarted by Manager.
|
||||
|
||||
clientgui/
|
||||
MainDocument.cpp
|
||||
|
|
|
@ -509,9 +509,7 @@ int CMainDocument::Connect(const wxChar* szComputer, int iPort, const wxChar* sz
|
|||
m_pNetworkConnection->SetComputer(szComputer, iPort, szComputerPassword, bUseDefaultPassword);
|
||||
m_pNetworkConnection->FireReconnectEvent();
|
||||
|
||||
if (szComputer != strOldMachineName) {
|
||||
ResetMessageState();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -519,6 +517,7 @@ int CMainDocument::Connect(const wxChar* szComputer, int iPort, const wxChar* sz
|
|||
int CMainDocument::Reconnect() {
|
||||
m_pNetworkConnection->ForceReconnect();
|
||||
m_pNetworkConnection->FireReconnectEvent();
|
||||
ResetMessageState();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue