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