diff options
author | Gustav Simonsson <gustav@erlang.org> | 2012-07-03 14:31:22 +0200 |
---|---|---|
committer | Gustav Simonsson <gustav@erlang.org> | 2012-07-03 14:31:22 +0200 |
commit | 06067a490863cf2e7ff3323b639176b6200c9c41 (patch) | |
tree | 18e1e78d4a2a8840d2aab7309c06113b58f08cb3 /lib/stdlib/src/gen_server.erl | |
parent | 3b34580548d5060bae35a0f787e1c80b4a294123 (diff) | |
download | erlang-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.erl | 2 |
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, _, _}) -> |