File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -282,7 +282,7 @@ int http_server_stop(http_server_t* server) {
282282namespace hv {
283283
284284std::shared_ptr<hv::EventLoop> HttpServer::loop (int idx) {
285- HttpServerPrivdata* privdata = (HttpServerPrivdata*)privdata;
285+ HttpServerPrivdata* privdata = (HttpServerPrivdata*)this -> privdata ;
286286 if (privdata == NULL ) return NULL ;
287287 std::lock_guard<std::mutex> locker (privdata->mutex_ );
288288 if (privdata->loops .empty ()) return NULL ;
@@ -297,7 +297,7 @@ std::shared_ptr<hv::EventLoop> HttpServer::loop(int idx) {
297297}
298298
299299size_t HttpServer::connectionNum () {
300- HttpServerPrivdata* privdata = (HttpServerPrivdata*)privdata;
300+ HttpServerPrivdata* privdata = (HttpServerPrivdata*)this -> privdata ;
301301 if (privdata == NULL ) return 0 ;
302302 std::lock_guard<std::mutex> locker (privdata->mutex_ );
303303 if (privdata->loops .empty ()) return 0 ;
You can’t perform that action at this time.
0 commit comments