From df919d2a8548126518532580e325ca2cfe545997 Mon Sep 17 00:00:00 2001 From: arvidn Date: Mon, 20 Mar 2017 22:30:31 -0400 Subject: [PATCH] fix performance issue with async_add_torrent of file:// urls --- src/session_impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/session_impl.cpp b/src/session_impl.cpp index cd808e923..172033960 100644 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -4604,8 +4604,8 @@ namespace aux { } TORRENT_ASSERT(params->ti->is_valid()); TORRENT_ASSERT(params->ti->num_files() > 0); - add_torrent(*params, ec); params->url.clear(); + add_torrent(*params, ec); } #ifndef TORRENT_DISABLE_EXTENSIONS