From bbf0d11a513bd66dbc99fc66231c058de0780571 Mon Sep 17 00:00:00 2001 From: XMRig Date: Sun, 17 Mar 2019 16:03:45 +0700 Subject: [PATCH] Sync changes. --- src/base/kernel/Process.cpp | 3 --- src/base/tools/Handle.h | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/base/kernel/Process.cpp b/src/base/kernel/Process.cpp index 7feec481..0bc40e2d 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 980d4500..288c32de 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; }); } };