Optimize code

Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
main
Jianhui Zhao 2017-12-31 17:28:27 +08:00
parent 4fb0f0b692
commit 78f060779e
1 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,6 @@ int uh_ssl_init(struct uh_server *srv, const char *key, const char *crt)
if (_init)
return 0;
_init = true;
dlh = dlopen("libustream-ssl.so", RTLD_LAZY | RTLD_LOCAL);
if (!dlh) {
uh_log_err("Failed to load ustream-ssl library: %s", dlerror());
@ -57,6 +56,8 @@ int uh_ssl_init(struct uh_server *srv, const char *key, const char *crt)
return -EINVAL;
}
_init = true;
return 0;
}