mirror of
https://github.com/processone/ejabberd.git
synced 2024-07-14 23:44:18 +02:00
Monitor only noconnection events
This commit is contained in:
parent
8aaf9bffa0
commit
70e1545d3a
|
@ -856,7 +856,7 @@ rpc_call(Node, Mod, Fun, Args, Timeout) ->
|
|||
{Ref, Result} ->
|
||||
erlang:demonitor(MRef, [flush]),
|
||||
Result;
|
||||
{'DOWN', MRef, _, _, Reason} ->
|
||||
{'DOWN', MRef, _, _, noconnection = Reason} ->
|
||||
{badrpc, Reason}
|
||||
after Timeout ->
|
||||
erlang:demonitor(MRef, [flush]),
|
||||
|
|
Loading…
Reference in New Issue
Block a user