Commit 0544b1fe authored by cdjgit's avatar cdjgit

use bthread_stopped() to quit ns bthread

parent 025790d7
......@@ -234,7 +234,7 @@ int ConsulNamingService::RunNamingService(const char* service_name,
return -1;
}
}
if (errno == EINTR) {
if (bthread_stopped(bthread_self())) {
RPC_VLOG << "Quit NamingServiceThread=" << bthread_self();
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment