Skip to content

Instantly share code, notes, and snippets.

@cryptocode
Created December 15, 2018 22:15
Show Gist options
  • Save cryptocode/54ad2643bc181af9f4983b7c10de1f2c to your computer and use it in GitHub Desktop.
Save cryptocode/54ad2643bc181af9f4983b7c10de1f2c to your computer and use it in GitHub Desktop.
diff --git a/rai/node/node.cpp b/rai/node/node.cpp
index b9f5681e..caaae4e0 100644
--- a/rai/node/node.cpp
+++ b/rai/node/node.cpp
@@ -1966,13 +1966,13 @@ void rai::node::stop ()
{
block_processor_thread.join ();
}
+ vote_processor.stop ();
active.stop ();
network.stop ();
bootstrap_initiator.stop ();
bootstrap.stop ();
port_mapping.stop ();
checker.stop ();
- vote_processor.stop ();
wallets.stop ();
}
@@ -3321,6 +3321,7 @@ void rai::active_transactions::stop ()
{
thread.join ();
}
+ lock.lock();
roots.clear ();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment