Skip to content

Commit

Permalink
allow connections while checking resume data if no_verify_files flag …
Browse files Browse the repository at this point in the history
…is set
  • Loading branch information
Elyas EL IDRISSI committed Oct 18, 2024
1 parent bed9075 commit af561d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/torrent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Copyright (c) 2020, Paul-Louis Ageneau
Copyright (c) 2021, AdvenT
Copyright (c) 2021, Joris CARRIER
Copyright (c) 2021, thrnz
Copyright (c) 2024, Elyas EL IDRISSI
All rights reserved.
Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -8161,7 +8162,8 @@ namespace {
if (is_paused() || m_abort || m_graceful_pause_mode) return false;

if ((m_state == torrent_status::checking_files
|| m_state == torrent_status::checking_resume_data)
|| (m_state == torrent_status::checking_resume_data
&& !(m_add_torrent_params && m_add_torrent_params->flags & torrent_flags::no_verify_files)))
&& valid_metadata())
return false;

Expand Down

0 comments on commit af561d0

Please sign in to comment.