Correctly close websocket API connection
This commit is contained in:
parent
a87a99bbeb
commit
2c5c30848a
1 changed files with 4 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue