summaryrefslogtreecommitdiff
path: root/lib/stdlib/src/gen_server.erl
diff options
context:
space:
mode:
authorGustav Simonsson <gustav@erlang.org>2012-07-03 14:31:22 +0200
committerGustav Simonsson <gustav@erlang.org>2012-07-03 14:31:22 +0200
commit06067a490863cf2e7ff3323b639176b6200c9c41 (patch)
tree18e1e78d4a2a8840d2aab7309c06113b58f08cb3 /lib/stdlib/src/gen_server.erl
parent3b34580548d5060bae35a0f787e1c80b4a294123 (diff)
downloaderlang-06067a490863cf2e7ff3323b639176b6200c9c41.tar.gz
Correct guard matching in gen_server:enter_loop/4
to match global scope in ServerName without timeout. OTP-10130
Diffstat (limited to 'lib/stdlib/src/gen_server.erl')
-rw-r--r--lib/stdlib/src/gen_server.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stdlib/src/gen_server.erl b/lib/stdlib/src/gen_server.erl
index 59c6d240ba..04308a51b7 100644
--- a/lib/stdlib/src/gen_server.erl
+++ b/lib/stdlib/src/gen_server.erl
@@ -270,7 +270,7 @@ enter_loop(Mod, Options, State) ->
enter_loop(Mod, Options, State, self(), infinity).
enter_loop(Mod, Options, State, ServerName = {Scope, _})
- when Scope == local; Scope == local ->
+ when Scope == local; Scope == global ->
enter_loop(Mod, Options, State, ServerName, infinity);
enter_loop(Mod, Options, State, ServerName = {via, _, _}) ->