1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-22 15:54:57 +00:00

remove TR_ASSERT(now >= latest) (#7018)

This commit is contained in:
Cœur 2024-10-13 21:34:45 +02:00 committed by GitHub
parent 21d7720749
commit f5997eb5ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -832,7 +832,6 @@ struct tr_torrent
{ {
if (auto const latest = std::max(date_started_, date_active_); latest != 0) if (auto const latest = std::max(date_started_, date_active_); latest != 0)
{ {
TR_ASSERT(now >= latest);
return static_cast<size_t>(std::max(now - latest, time_t{ 0 })); return static_cast<size_t>(std::max(now - latest, time_t{ 0 }));
} }
} }