diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2016-07-23 01:08:05 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2016-07-23 01:08:05 +0200 |
commit | 814b80c644fa425990dc63875e1da841d698b0fa (patch) | |
tree | 277041ddec51894c69741f6df070b6a50e3ca4c4 /include/ejabberd_sm.hrl | |
parent | Support oauth password grant type (diff) |
Preserve PID for offline sessions
Don't set the PID to 'undefined' when a session goes offline, as this
looses the information which node created the session table entry.
Fixes #1196.
Diffstat (limited to 'include/ejabberd_sm.hrl')
-rw-r--r-- | include/ejabberd_sm.hrl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ejabberd_sm.hrl b/include/ejabberd_sm.hrl index 38298d66..f86ab1c1 100644 --- a/include/ejabberd_sm.hrl +++ b/include/ejabberd_sm.hrl @@ -1,9 +1,9 @@ -ifndef(EJABBERD_SM_HRL). -define(EJABBERD_SM_HRL, true). --record(session, {sid, usr, us, priority, info}). +-record(session, {sid, usr, us, priority, info = []}). -record(session_counter, {vhost, count}). --type sid() :: {erlang:timestamp(), pid()} | {erlang:timestamp(), undefined}. +-type sid() :: {erlang:timestamp(), pid()}. -type ip() :: {inet:ip_address(), inet:port_number()} | undefined. -type info() :: [{conn, atom()} | {ip, ip()} | {node, atom()} | {oor, boolean()} | {auth_module, atom()} |