diff --git a/src/storage.cpp b/src/storage.cpp index 6e5a92468..f69dcde88 100644 --- a/src/storage.cpp +++ b/src/storage.cpp @@ -325,10 +325,10 @@ namespace libtorrent #else fs::path f = p / i->path; #endif + // TODO: optimize + if (exists(f)) #ifndef BOOST_NO_EXCEPTIONS try -#else - if (exists(f)) #endif { size = file_size(f);