Fix tdweb build.

This commit is contained in:
levlam 2020-12-23 19:25:01 +03:00
parent d628f9fa02
commit c80b566c49
1 changed files with 2 additions and 0 deletions

View File

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