Commit dbff1fdf authored by Louis Matthijssen's avatar Louis Matthijssen

Properly shutdown non-threaded serve

parent a32b5db1
......@@ -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