diff --git a/src/bitcoindjs.cc b/src/bitcoindjs.cc index 6aa79b70..a886f6d5 100644 --- a/src/bitcoindjs.cc +++ b/src/bitcoindjs.cc @@ -858,7 +858,8 @@ start_node_thread(void) { } Shutdown(); - // bitcoind is shutdown, notify the main thread. + // bitcoind is shutdown. Notify the main thread + // which is polling this variable: shutdown_complete = true; }