aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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}.