24
1
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:
Evgeniy Khramtsov 2011-05-16 17:59:27 +10:00
parent 8aaf9bffa0
commit 70e1545d3a

View File

@ -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]),