Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Fix exit crash - develop #7891

Merged
merged 1 commit into from
Sep 11, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions plugins/producer_plugin/producer_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -913,9 +913,8 @@ void producer_plugin::plugin_shutdown() {
if( my->_thread_pool ) {
my->_thread_pool->stop();
}
my->_accepted_block_connection.reset();
my->_accepted_block_header_connection.reset();
my->_irreversible_block_connection.reset();

app().post( 0, [me = my](){} ); // keep my pointer alive until queue is drained
}

void producer_plugin::handle_sighup() {
Expand Down