fix DOWN messages from external sources issue
This commit is contained in:
parent
95a8e3c32d
commit
2240decb95
2 changed files with 10 additions and 2 deletions
|
@ -772,8 +772,8 @@ receivefrom(Pid) ->
|
|||
receive
|
||||
{Pid, R} ->
|
||||
R;
|
||||
{'DOWN', _, _, BadPid, Reason} when Reason =/= normal ->
|
||||
erlang:throw({BadPid, Reason});
|
||||
{'DOWN', _, _, Pid, Reason} when Reason =/= normal ->
|
||||
erlang:throw({Pid, Reason});
|
||||
{timerrang, _} ->
|
||||
erlang:throw({nil, timeout})
|
||||
end.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue