diff --git a/src/base/kernel/Process.cpp b/src/base/kernel/Process.cpp index 7feec4810..0bc40e2da 100644 --- a/src/base/kernel/Process.cpp +++ b/src/base/kernel/Process.cpp @@ -28,7 +28,6 @@ #include "base/kernel/Process.h" -#include "version.h" static size_t location(xmrig::Process::Location location, char *buf, size_t max) @@ -52,8 +51,6 @@ xmrig::Process::Process(int argc, char **argv) : m_arguments(argc, argv) { srand(static_cast(static_cast(time(nullptr)) ^ reinterpret_cast(this))); - - uv_set_process_title(APP_DESC " " APP_VERSION); } diff --git a/src/base/tools/Handle.h b/src/base/tools/Handle.h index 980d4500a..288c32de9 100644 --- a/src/base/tools/Handle.h +++ b/src/base/tools/Handle.h @@ -47,6 +47,10 @@ public: template static inline void deleteLater(T handle) { + if (uv_is_closing(reinterpret_cast(handle))) { + return; + } + uv_close(reinterpret_cast(handle), [](uv_handle_t *handle) { delete handle; }); } };