diff options
author | Anders Svensson <[email protected]> | 2017-08-24 20:13:15 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2017-09-05 08:51:52 +0200 |
commit | b3ac2949c102d9569c14f6f20af31283fed6b459 (patch) | |
tree | 3a69fb00d9647acea11e664ee1fddf01628d8f4b /lib/diameter/src/base/diameter_reg.erl | |
parent | ff4a0956d132c3af002bfbe5d48f18e492d3763f (diff) | |
download | otp-b3ac2949c102d9569c14f6f20af31283fed6b459.tar.gz otp-b3ac2949c102d9569c14f6f20af31283fed6b459.tar.bz2 otp-b3ac2949c102d9569c14f6f20af31283fed6b459.zip |
Fix minor monitor blunder in diameter_reg
Commit 58091992 discarded a new monitor reference, so didn't avoid
multiple monitors as was the intention. The blunder was harmless since
all but the first DOWN message resulted in notifications.
Diffstat (limited to 'lib/diameter/src/base/diameter_reg.erl')
-rw-r--r-- | lib/diameter/src/base/diameter_reg.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/diameter/src/base/diameter_reg.erl b/lib/diameter/src/base/diameter_reg.erl index 97e74657bd..e6a82e1764 100644 --- a/lib/diameter/src/base/diameter_reg.erl +++ b/lib/diameter/src/base/diameter_reg.erl @@ -339,7 +339,7 @@ insert(true, Rec) -> add(true, {_Key, Pid} = Rec, S) -> NS = add_monitor(Pid, S), {Recvs, RD} = add(Rec, NS), - {Recvs, S#state{receivers = RD}}; + {Recvs, NS#state{receivers = RD}}; add(false = No, _, S) -> {No, S}. |