Fix websocket_client crash on close

This commit is contained in:
abitmore 2019-05-25 08:30:05 -04:00
parent 397830b8ef
commit 8aa729da68

View file

@ -475,8 +475,9 @@ namespace fc { namespace http {
{
_connection->close(0, "client closed");
_connection.reset();
_closed->wait();
}
if( _closed )
_closed->wait();
}
fc::promise<void>::ptr _connected;
fc::promise<void>::ptr _closed;