summaryrefslogtreecommitdiff
path: root/server/src/admin_connection.cc
diff options
context:
space:
mode:
authordeva <deva>2011-02-17 12:35:46 +0000
committerdeva <deva>2011-02-17 12:35:46 +0000
commited24baca8576c0516db07dbe904f9567a65c37c3 (patch)
tree569e8c7944c5f9d7f513670af212dc75c110e771 /server/src/admin_connection.cc
parentdb144840aba95affb3a6b5b2536059f49f0677ff (diff)
'Renamed' active/setActive methods to idle/setIdle, since these names makes more sence.
Diffstat (limited to 'server/src/admin_connection.cc')
-rw-r--r--server/src/admin_connection.cc4
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++;
}