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:
parent
f5f353d90a
commit
3e4ed83cb3
5 changed files with 9 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue