Skip to content

Commit

Permalink
Disable lt20 memory-mapped files
Browse files Browse the repository at this point in the history
  • Loading branch information
HanabishiRecca committed Sep 5, 2024
1 parent a7f7c5f commit 1202d84
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/base/bittorrent/sessionimpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1638,6 +1638,7 @@ void SessionImpl::initializeNativeSession()
#ifdef QBT_USES_LIBTORRENT2
// preserve the same behavior as in earlier libtorrent versions
pack.set_bool(lt::settings_pack::enable_set_file_valid_data, true);
pack.set_int(lt::settings_pack::mmap_file_size_cutoff, std::numeric_limits<int>::max());
#endif

lt::session_params sessionParams {std::move(pack), {}};
Expand Down

0 comments on commit 1202d84

Please sign in to comment.