Browse Source

Pause torrent in all "fastresume rejected" cases

PR #17087.
Addition to #17064.
adaptive-webui-19844
Vladimir Golovnev 3 years ago committed by GitHub
parent
commit
4032393c0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/base/bittorrent/nativesessionextension.cpp

3
src/base/bittorrent/nativesessionextension.cpp

@ -36,13 +36,10 @@ @@ -36,13 +36,10 @@
namespace
{
void handleFastresumeRejectedAlert(const lt::fastresume_rejected_alert *alert)
{
if (alert->error.value() == lt::errors::mismatching_file_size)
{
alert->handle.unset_flags(lt::torrent_flags::auto_managed);
alert->handle.pause();
}
}
}
lt::feature_flags_t NativeSessionExtension::implemented_features()

Loading…
Cancel
Save