Unverified Commit 6124c84c authored by Dennis Jenkins's avatar Dennis Jenkins Committed by GitHub

Merge pull request #389 from LouisMT/shutdown-non-threaded-serve

Properly shutdown non-threaded serve
parents a32b5db1 dbff1fdf
......@@ -234,6 +234,7 @@ Listener::getPort() const {
void
Listener::run() {
shutdownFd.bind(poller);
reactor_.run();
for (;;) {
......@@ -269,7 +270,6 @@ Listener::run() {
void
Listener::runThreaded() {
shutdownFd.bind(poller);
acceptThread = std::thread([=]() { this->run(); });
}
......
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