Skip to content

Commit 0bd57cf

Browse files
authored
fix syntax bug (#608)
1 parent d7fd545 commit 0bd57cf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

http/server/HttpServer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ int http_server_stop(http_server_t* server) {
282282
namespace hv {
283283

284284
std::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

299299
size_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;

0 commit comments

Comments
 (0)