diff --git a/bcos-boostssl/bcos-boostssl/websocket/WsConnector.cpp b/bcos-boostssl/bcos-boostssl/websocket/WsConnector.cpp index 2628c09cfd..d1455a8fb4 100644 --- a/bcos-boostssl/bcos-boostssl/websocket/WsConnector.cpp +++ b/bcos-boostssl/bcos-boostssl/websocket/WsConnector.cpp @@ -61,7 +61,7 @@ void WsConnector::connectToWsServer(const std::string& _host, uint16_t _port, bo // resolve host resolver->async_resolve(_host, std::to_string(_port), - [this, _host, _port, _disableSsl, endpoint, ioc, ctx, connector, builder, _callback]( + [_host, _port, _disableSsl, endpoint, ioc, ctx, connector, builder, _callback]( boost::beast::error_code _ec, boost::asio::ip::tcp::resolver::results_type _results) { if (_ec) {