- client: if we're using an acct mgr,

and we're attached to a project manually (not via acct mgr)
    and the acct mgr tells us to detach from it, don't.

svn path=/trunk/boinc/; revision=22930
This commit is contained in:
David Anderson 2011-01-20 00:36:45 +00:00
parent 795e89dbf5
commit d4f00d4467
2 changed files with 11 additions and 1 deletions

View File

@ -223,3 +223,11 @@ David 19 Jan 2011
rr_sim.cpp
app_control.cpp
cpu_sched.cpp
David 19 Jan 2011
- client: if we're using an acct mgr,
and we're attached to a project manually (not via acct mgr)
and the acct mgr tells us to detach from it, don't.
client/
acct_mgr.cpp

View File

@ -481,7 +481,9 @@ void ACCT_MGR_OP::handle_reply(int http_op_retval) {
pp = gstate.lookup_project(acct.url.c_str());
if (pp) {
if (acct.detach) {
gstate.detach_project(pp);
if (pp->attached_via_acct_mgr) {
gstate.detach_project(pp);
}
} else {
// BAM! leaves authenticator blank if our request message
// had the current account info