MGR: Reset messages whenver connecting or reconnecting to client

svn path=/trunk/boinc/; revision=15518
This commit is contained in:
Charlie Fenton 2008-07-01 02:23:34 +00:00
parent 0f60f0d42b
commit 48394ceda4
2 changed files with 11 additions and 3 deletions

View File

@ -5271,3 +5271,12 @@ David 30 June 2008
sched_send.C sched_send.C
tools/ tools/
process_results_template.C 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

View File

@ -509,9 +509,7 @@ int CMainDocument::Connect(const wxChar* szComputer, int iPort, const wxChar* sz
m_pNetworkConnection->SetComputer(szComputer, iPort, szComputerPassword, bUseDefaultPassword); m_pNetworkConnection->SetComputer(szComputer, iPort, szComputerPassword, bUseDefaultPassword);
m_pNetworkConnection->FireReconnectEvent(); m_pNetworkConnection->FireReconnectEvent();
if (szComputer != strOldMachineName) {
ResetMessageState(); ResetMessageState();
}
return 0; return 0;
} }
@ -519,6 +517,7 @@ int CMainDocument::Connect(const wxChar* szComputer, int iPort, const wxChar* sz
int CMainDocument::Reconnect() { int CMainDocument::Reconnect() {
m_pNetworkConnection->ForceReconnect(); m_pNetworkConnection->ForceReconnect();
m_pNetworkConnection->FireReconnectEvent(); m_pNetworkConnection->FireReconnectEvent();
ResetMessageState();
return 0; return 0;
} }