MGR: Fix bugs when connection to client is lost or reestablished under async GUI RPCs

svn path=/trunk/boinc/; revision=15986
This commit is contained in:
Charlie Fenton 2008-09-11 13:00:40 +00:00
parent 6ef4515e62
commit f5a137ffd5
1 changed files with 8 additions and 6 deletions

View File

@ -737,12 +737,14 @@ void CMainDocument::HandleCompletedRPC() {
}
if ( (crr_event) && (crr_event != (wxEvent*)-1) ) {
if (crr_eventHandler) {
crr_eventHandler->ProcessEvent(*crr_event);
} else {
if (pFrame) {
wxASSERT(wxDynamicCast(pFrame, CBOINCBaseFrame));
pFrame->ProcessEvent(*crr_event);
if (!retval) {
if (crr_eventHandler) {
crr_eventHandler->ProcessEvent(*crr_event);
} else {
if (pFrame) {
wxASSERT(wxDynamicCast(pFrame, CBOINCBaseFrame));
pFrame->ProcessEvent(*crr_event);
}
}
}
delete crr_event;