diff --git a/http/vibe/http/client.d b/http/vibe/http/client.d index 8e719c8299..bb3d58c38a 100644 --- a/http/vibe/http/client.d +++ b/http/vibe/http/client.d @@ -569,7 +569,8 @@ final class HTTPClient { { assert(!m_requesting, "Interleaved HTTP client requests detected!"); assert(!m_responding, "Interleaved HTTP client request/response detected!"); - + scope(failure) disconnect; + m_requesting = true; scope(exit) m_requesting = false;