Merge pull request #142 from bitshares/fix-api-close
Correctly close websocket API connection
This commit is contained in:
commit
cd49944222
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;
|
return result;
|
||||||
} );
|
} );
|
||||||
_connection->closed.connect( [this](){ closed(); } );
|
_connection->closed.connect( [this](){
|
||||||
|
closed();
|
||||||
|
_connection = nullptr;
|
||||||
|
} );
|
||||||
}
|
}
|
||||||
|
|
||||||
variant websocket_api_connection::send_call(
|
variant websocket_api_connection::send_call(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue