mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 21:33:27 -07:00
Pause torrent in all "fastresume rejected" cases
PR #17087. Addition to #17064.
This commit is contained in:
parent
8e854062e8
commit
4032393c0e
1 changed files with 2 additions and 5 deletions
|
@ -36,13 +36,10 @@
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
void handleFastresumeRejectedAlert(const lt::fastresume_rejected_alert *alert)
|
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.unset_flags(lt::torrent_flags::auto_managed);
|
||||||
alert->handle.pause();
|
alert->handle.pause();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
lt::feature_flags_t NativeSessionExtension::implemented_features()
|
lt::feature_flags_t NativeSessionExtension::implemented_features()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue