mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=6395
This commit is contained in:
parent
e40919d465
commit
c59c0b206c
|
@ -8184,3 +8184,10 @@ David 21 June 2005
|
|||
Makefile.am
|
||||
lib/
|
||||
Makefile.am
|
||||
|
||||
David 21 June 2005
|
||||
- Manager: don't reenter message-display code
|
||||
(else can show same msg or alert twice)
|
||||
|
||||
clientgui/
|
||||
MainWindow.cpp
|
||||
|
|
|
@ -817,6 +817,10 @@ int CMainDocument::WorkAbort(int iIndex) {
|
|||
|
||||
int CMainDocument::CachedMessageUpdate() {
|
||||
int retval;
|
||||
static bool in_this_func = false;
|
||||
|
||||
if (in_this_func) return 0;
|
||||
in_this_func = true;
|
||||
|
||||
if (IsConnected()) {
|
||||
MESSAGES new_msgs;
|
||||
|
@ -824,7 +828,7 @@ int CMainDocument::CachedMessageUpdate() {
|
|||
if (retval) {
|
||||
wxLogTrace(wxT("Function Status"), "CMainDocument::CachedMessageUpdate - Get Messages Failed '%d'", retval);
|
||||
m_pNetworkConnection->SetStateDisconnected();
|
||||
return retval;
|
||||
goto done;
|
||||
}
|
||||
std::vector<MESSAGE*>::iterator mi = new_msgs.messages.begin();
|
||||
while (mi != new_msgs.messages.end()) {
|
||||
|
@ -848,7 +852,8 @@ int CMainDocument::CachedMessageUpdate() {
|
|||
new_msgs.messages.erase(mi);
|
||||
}
|
||||
}
|
||||
|
||||
done:
|
||||
in_this_func = false;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue