markparticle / WebServer

C++ Linux WebServer服务器
Apache License 2.0
3.58k stars 733 forks source link

isClose_这个有什么用? #103

Open 1900100209 opened 5 months ago

1900100209 commented 5 months ago
    if(!InitSocket_()) { isClose_ = true;}
if(isClose_) { LOG_ERROR("========== Server init error!=========="); }

void WebServer::Start() {
    int timeMS = -1;  /* epoll wait timeout == -1 无事件将阻塞 */
    if(!isClose_) { LOG_INFO("========== Server start =========="); }
    while(!isClose_) {

感觉完全是冗余代码