Fix tdweb build.

This commit is contained in:
levlam 2020-12-23 19:25:01 +03:00
parent d628f9fa02
commit c80b566c49

View File

@ -138,10 +138,12 @@ void ConcurrentScheduler::finish() {
#endif #endif
if (ExitGuard::is_exited()) { if (ExitGuard::is_exited()) {
#if !TD_THREAD_UNSUPPORTED && !TD_EVENTFD_UNSUPPORTED
// prevent closing of schedulers from already killed by OS threads // prevent closing of schedulers from already killed by OS threads
for (auto &thread : threads_) { for (auto &thread : threads_) {
thread.detach(); thread.detach();
} }
#endif
#if TD_PORT_WINDOWS #if TD_PORT_WINDOWS
iocp_->interrupt_loop(); iocp_->interrupt_loop();