aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2010-10-15 14:15:42 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2010-10-15 14:15:42 +0200
commitd607a6d9528eac5d853817340585cfad11bc9dba (patch)
tree702c4572cd1e03b67822f249ce6069d8b03c4ec5
parent5e295cb6b5129a8cac5bdee75ae7d3a06e690e72 (diff)
downloaderlang-d607a6d9528eac5d853817340585cfad11bc9dba.tar.gz
erlang-d607a6d9528eac5d853817340585cfad11bc9dba.tar.xz
erlang-d607a6d9528eac5d853817340585cfad11bc9dba.zip
fixed logout
-rw-r--r--server/cldb.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/cldb.erl b/server/cldb.erl
index 8d58fb4..b0a7a79 100644
--- a/server/cldb.erl
+++ b/server/cldb.erl
@@ -94,7 +94,7 @@ set_client_pid(User, Pid) ->
%% Change the database to log out a user by PID
logout(Pid) ->
case find_user_by_pid(Pid) of
- {atomic, [UserRow|_]} ->
+ {ok, [UserRow|_]} ->
F = fun() ->
New = UserRow#user{logged_in = false},
mnesia:write(New)