diff options
author | Anders Svensson <[email protected]> | 2013-09-04 15:49:18 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2013-09-04 16:35:55 +0200 |
commit | c01e53a7caaa11c0745f4e0ce30df387b55f435b (patch) | |
tree | cc625df200d750394cc210db5d86c9131896d8b2 /lib/diameter/src | |
parent | 8cece79b77952c991e62ae595bcf71cde016a052 (diff) | |
download | otp-c01e53a7caaa11c0745f4e0ce30df387b55f435b.tar.gz otp-c01e53a7caaa11c0745f4e0ce30df387b55f435b.tar.bz2 otp-c01e53a7caaa11c0745f4e0ce30df387b55f435b.zip |
Fix broken spawn_opt
The option was morphed into a boolean() and then ignored.
Diffstat (limited to 'lib/diameter/src')
-rw-r--r-- | lib/diameter/src/base/diameter_config.erl | 5 | ||||
-rw-r--r-- | lib/diameter/src/base/diameter_service.erl | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/diameter/src/base/diameter_config.erl b/lib/diameter/src/base/diameter_config.erl index fc5c284bf2..34b40c3a29 100644 --- a/lib/diameter/src/base/diameter_config.erl +++ b/lib/diameter/src/base/diameter_config.erl @@ -651,8 +651,9 @@ make_opts(Opts, Defs) -> [{K, opt(K,V)} || {K,V} <- Known]. -opt(spawn_opt, L) -> - is_list(L); +opt(spawn_opt, L) + when is_list(L) -> + L; opt(K, false = B) when K /= sequence -> diff --git a/lib/diameter/src/base/diameter_service.erl b/lib/diameter/src/base/diameter_service.erl index 9dd8aafc61..47e03cd0a0 100644 --- a/lib/diameter/src/base/diameter_service.erl +++ b/lib/diameter/src/base/diameter_service.erl @@ -673,7 +673,8 @@ service_options(Opts) -> {use_shared_peers, get_value(use_shared_peers, Opts)}, {restrict_connections, proplists:get_value(restrict_connections, Opts, - ?RESTRICT)}]. + ?RESTRICT)}, + {spawn_opt, proplists:get_value(spawn_opt, Opts, [])}]. %% The order of options is significant since we match against the list. mref(false = No) -> |