mirror of
https://github.com/yhirose/cpp-httplib
synced 2024-11-21 14:29:10 -07:00
Resolve #1482
This commit is contained in:
parent
4e6ded1f36
commit
0e7d2f9f93
1 changed files with 1 additions and 5 deletions
|
@ -5598,11 +5598,7 @@ inline bool Server::listen_internal() {
|
|||
#endif
|
||||
}
|
||||
|
||||
#if __cplusplus > 201703L
|
||||
task_queue->enqueue([=, this]() { process_and_close_socket(sock); });
|
||||
#else
|
||||
task_queue->enqueue([=]() { process_and_close_socket(sock); });
|
||||
#endif
|
||||
task_queue->enqueue([this, sock]() { process_and_close_socket(sock); });
|
||||
}
|
||||
|
||||
task_queue->shutdown();
|
||||
|
|
Loading…
Reference in a new issue