1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-06 03:50:15 +02:00

Raise bad_node instead of node_down for consistency reason

This commit is contained in:
Evgeniy Khramtsov 2017-03-30 17:51:37 +03:00
parent f5f353d90a
commit 3e4ed83cb3
5 changed files with 9 additions and 9 deletions

View file

@ -58,7 +58,7 @@ find_session(SID) ->
?SQL("select @(pid)s, @(node)s from bosh where sid=%(SID)s")) of
{selected, [{Pid, Node}]} ->
try {ok, aux:decode_pid(Pid, Node)}
catch _:{node_down, _} -> error
catch _:{bad_node, _} -> error
end;
{selected, []} ->
error;