Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isClose_这个有什么用? #103

Open
1900100209 opened this issue May 1, 2024 · 0 comments
Open

isClose_这个有什么用? #103

1900100209 opened this issue May 1, 2024 · 0 comments

Comments

@1900100209
Copy link

    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_) {

感觉完全是冗余代码

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant