diff options
Diffstat (limited to 'server/src/admin_connection.cc')
-rw-r--r-- | server/src/admin_connection.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/admin_connection.cc b/server/src/admin_connection.cc index e470946..ecc7c65 100644 --- a/server/src/admin_connection.cc +++ b/server/src/admin_connection.cc @@ -42,7 +42,7 @@ static std::string admin_sessionunlock(Environment &env, std::string id) env.sessions.deleteSession(id); return "Session " + id + " was 'readonly' and has been discarded."; } else { - session->setActive(false); + session->setIdle(true); return "Session " + id + " has been deactivated (set to idle)."; } } @@ -59,7 +59,7 @@ static std::string admin_listactivesessions(Environment &env) Session *s = env.sessions.session(*i); SessionAutolock lock(*s); str += "Session " + *i + ": "+s->templ+" on "+s->patientid+" "+ - std::string(s->active()?"[active]":"[idle]")+"\n"; + std::string(s->idle()?"[idle]":"[active]")+"\n"; i++; } |