- client: fix crashing bug when account manager returns

new project w/ "no more work" flag set

svn path=/trunk/boinc/; revision=21787
This commit is contained in:
David Anderson 2010-06-22 17:50:25 +00:00
parent d5e035456d
commit 0e4e823b4e
2 changed files with 16 additions and 1 deletions

View File

@ -4460,3 +4460,10 @@ David 21 June 2010
wrapper.cpp
multi_thread/
multi_thread.cpp
David 22 June 2010
- client: fix crashing bug when account manager returns
new project w/ "no more work" flag set
client/
acct_mgr.cpp

View File

@ -490,7 +490,15 @@ void ACCT_MGR_OP::handle_reply(int http_op_retval) {
acct.url.c_str(), acct.authenticator.c_str(), "", true
);
if (acct.dont_request_more_work.present) {
pp->dont_request_more_work = acct.dont_request_more_work.value;
pp = gstate.lookup_project(acct.url.c_str());
if (pp) {
pp->dont_request_more_work = acct.dont_request_more_work.value;
} else {
msg_printf(NULL, MSG_INTERNAL_ERROR,
"Project not found: %s",
acct.url.c_str()
);
}
}
}
}