summaryrefslogtreecommitdiff
path: root/src/lib/http_server.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/http_server.cc')
-rw-r--r--src/lib/http_server.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/http_server.cc b/src/lib/http_server.cc
index 874a94054..fa47f3dd6 100644
--- a/src/lib/http_server.cc
+++ b/src/lib/http_server.cc
@@ -248,7 +248,7 @@ HTTPServer::handle(shared_ptr<Socket> socket)
}
}
- if (reader.close()) {
+ if (reader.close() || !socket->is_open()) {
break;
}
}