Skip to content

Commit

Permalink
Merge pull request #2050 from MartinNowak/leaking_connections
Browse files Browse the repository at this point in the history
fix leakage of connections
  • Loading branch information
s-ludwig authored Jan 28, 2018
2 parents 5a32f49 + ab5ebe9 commit 7605891
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inet/vibe/inet/urltransfer.d
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ void download(HTTPClient_ = void*)(URL url, scope void delegate(scope InputStrea
static if (is(HTTPClient_ == HTTPClient)) client = client_;
if (!client) client = new HTTPClient();
scope (exit) {
if (client_ !is null)
if (client_ is null) // disconnect default client
client.disconnect();
}

Expand Down

0 comments on commit 7605891

Please sign in to comment.