Correctly close websocket API connection

This commit is contained in:
abitmore 2019-07-19 15:55:35 -04:00
parent a87a99bbeb
commit 2c5c30848a

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(