Merge pull request #142 from bitshares/fix-api-close

Correctly close websocket API connection
This commit is contained in:
John M. Jones 2019-07-19 16:33:15 -05:00 committed by GitHub
commit cd49944222
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,7 +74,10 @@ websocket_api_connection::websocket_api_connection( const std::shared_ptr<fc::ht
return result;
} );
_connection->closed.connect( [this](){ closed(); } );
_connection->closed.connect( [this](){
closed();
_connection = nullptr;
} );
}
variant websocket_api_connection::send_call(