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

Fix crash #7084 - v1.7.x #7085

Merged
merged 1 commit into from
Apr 9, 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
13 changes: 7 additions & 6 deletions plugins/net_plugin/net_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2012,12 +2012,13 @@ namespace eosio {
}
if( !conn->read_delay_timer ) return;
conn->read_delay_timer->expires_from_now( def_read_delay_for_full_write_queue );
conn->read_delay_timer->async_wait(
app().get_priority_queue().wrap( priority::low, [this, weak_conn]( boost::system::error_code ) {
auto conn = weak_conn.lock();
if( !conn ) return;
start_read_message( conn );
} ) );
conn->read_delay_timer->async_wait( [this, weak_conn]( boost::system::error_code ec ) {
app().post( priority::low, [this, weak_conn]() {
auto conn = weak_conn.lock();
if( !conn ) return;
start_read_message( conn );
} );
} );
return;
}

Expand Down