aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2017-08-24 20:13:15 +0200
committerAnders Svensson <[email protected]>2017-09-05 08:51:52 +0200
commitb3ac2949c102d9569c14f6f20af31283fed6b459 (patch)
tree3a69fb00d9647acea11e664ee1fddf01628d8f4b /lib/diameter
parentff4a0956d132c3af002bfbe5d48f18e492d3763f (diff)
downloadotp-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')
-rw-r--r--lib/diameter/src/base/diameter_reg.erl2
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}.