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

Commit

Permalink
Merge pull request #7085 from EOSIO/fix-gh#7084-v1.7.x
Browse files Browse the repository at this point in the history
Fix crash #7084 - v1.7.x
  • Loading branch information
heifner authored Apr 9, 2019
2 parents c4adcb3 + c87c8f9 commit c0b542e
Showing 1 changed file with 7 additions and 6 deletions.
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

0 comments on commit c0b542e

Please sign in to comment.