aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/src/asn1ct_name.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2013-02-21 13:55:29 +0100
committerBjörn Gustavsson <[email protected]>2013-05-31 14:52:13 +0200
commitaa81984614f5b53d3d9a94f06334cf94e1fc43ad (patch)
tree93287b9513ad725b818a58d518fdd81551617474 /lib/asn1/src/asn1ct_name.erl
parenta0340855b3d92869ade4c48886685ff75fe17c8c (diff)
downloadotp-aa81984614f5b53d3d9a94f06334cf94e1fc43ad.tar.gz
otp-aa81984614f5b53d3d9a94f06334cf94e1fc43ad.tar.bz2
otp-aa81984614f5b53d3d9a94f06334cf94e1fc43ad.zip
Don't call asn1ct_name:clear/0 directly after asn1ct_name:start/0
Ensure that asn1ct_name:start/0 will call asn1ct_name:clear/0 if the name server process is already running so that we can be sure that the variables are cleared.
Diffstat (limited to 'lib/asn1/src/asn1ct_name.erl')
-rw-r--r--lib/asn1/src/asn1ct_name.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/asn1/src/asn1ct_name.erl b/lib/asn1/src/asn1ct_name.erl
index c9709d352f..c0c2ed302c 100644
--- a/lib/asn1/src/asn1ct_name.erl
+++ b/lib/asn1/src/asn1ct_name.erl
@@ -38,7 +38,8 @@ start() ->
end)),
ok;
_Pid ->
- already_started
+ %% Already started. Clear the variables.
+ clear()
end.
name_server_loop({Ref, Parent} = Monitor,Vars) ->