aboutsummaryrefslogtreecommitdiff
path: root/zenserver-test/zenserver-test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'zenserver-test/zenserver-test.cpp')
-rw-r--r--zenserver-test/zenserver-test.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/zenserver-test/zenserver-test.cpp b/zenserver-test/zenserver-test.cpp
index 3aeef8cba..47e5d7a37 100644
--- a/zenserver-test/zenserver-test.cpp
+++ b/zenserver-test/zenserver-test.cpp
@@ -165,6 +165,12 @@ private:
void OnError(const asio::error_code& Error)
{
+ // Let EOF errors proceed. They're raised when sockets close.
+ if (Error == asio::error::eof)
+ {
+ return;
+ }
+
using namespace fmt::literals;
zen::ThrowLastError("HTTP client error! '{}'"_format(Error.message()));
}