Fixed exit.
This commit is contained in:
parent
05928ccc25
commit
d5af5cf8f8
3 changed files with 34 additions and 18 deletions
|
@ -86,6 +86,9 @@ public:
|
|||
|
||||
inline ~RxPrivate()
|
||||
{
|
||||
m_pending = std::numeric_limits<uint32_t>::max();
|
||||
|
||||
std::lock_guard<std::mutex> lock(mutex);
|
||||
Handle::close(m_async);
|
||||
|
||||
delete m_storage;
|
||||
|
@ -121,6 +124,10 @@ public:
|
|||
{
|
||||
std::lock_guard<std::mutex> lock(mutex);
|
||||
|
||||
if (d_ptr->pending() > std::numeric_limits<uint16_t>::max()) {
|
||||
return;
|
||||
}
|
||||
|
||||
LOG_INFO("%s" MAGENTA_BOLD("init dataset%s") " algo " WHITE_BOLD("%s (") CYAN_BOLD("%u") WHITE_BOLD(" threads)") BLACK_BOLD(" seed %s..."),
|
||||
tag,
|
||||
nodeset.size() > 1 ? "s" : "",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue