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

Commit

Permalink
Can't call connected(), it checks flag that is only set after first read
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Apr 1, 2019
1 parent 1ad1f74 commit cc4d83b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/net_plugin/net_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2061,7 +2061,7 @@ namespace eosio {
[this,weak_conn]( boost::system::error_code ec, std::size_t bytes_transferred ) {
app().post( priority::medium, [this,weak_conn, ec, bytes_transferred]() {
auto conn = weak_conn.lock();
if (!conn || !conn->connected()) {
if (!conn || !conn->socket || !conn->socket->is_open()) {
return;
}

Expand Down

0 comments on commit cc4d83b

Please sign in to comment.