Merge pull request #8903 from lafirest/fix/tls_lib_error
fix(tls): fix ciphers cache return `ok` at the first time call
This commit is contained in:
commit
fbea5dce58
|
@ -145,7 +145,8 @@ all_ciphers_set_cached() ->
|
|||
case persistent_term:get(?FUNCTION_NAME, false) of
|
||||
false ->
|
||||
S = sets:from_list(all_ciphers()),
|
||||
persistent_term:put(?FUNCTION_NAME, S);
|
||||
persistent_term:put(?FUNCTION_NAME, S),
|
||||
S;
|
||||
Set ->
|
||||
Set
|
||||
end.
|
||||
|
|
Loading…
Reference in New Issue