Fixed TLS init order
This commit is contained in:
11
src/main.cpp
11
src/main.cpp
@@ -44,6 +44,10 @@
|
||||
#include "randomx.h"
|
||||
#endif
|
||||
|
||||
#ifdef WITH_TLS
|
||||
#include "tls.h"
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32) && defined(_MSC_VER) && !defined(NDEBUG)
|
||||
|
||||
#include <DbgHelp.h>
|
||||
@@ -312,6 +316,13 @@ int main(int argc, char* argv[])
|
||||
grpc_init();
|
||||
#endif
|
||||
|
||||
#ifdef WITH_TLS
|
||||
if (!p2pool::ServerTls::global_init()) {
|
||||
printf("ServerTls::global_init failed\n");
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
try {
|
||||
p2pool::p2pool pool(argc, argv);
|
||||
result = pool.run();
|
||||
|
||||
Reference in New Issue
Block a user