From ea1043a29351161a4ac2dd9b94e56768921701d0 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 29 Nov 2009 17:57:42 +0000 Subject: [PATCH] fix crash in force_recheck for torrents with no metadata --- ChangeLog | 1 + src/torrent.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ChangeLog b/ChangeLog index 710be2ac0..675c35350 100644 --- a/ChangeLog +++ b/ChangeLog @@ -88,6 +88,7 @@ release 0.14.8 * fixed typo that would sometimes prevent queued torrents to be checked * fixed bug in auto-manager where active_downloads and active_seeds would sometimes be used incorrectly + * force_recheck() no longer crashes on torrents with no metadata release 0.14.7 diff --git a/src/torrent.cpp b/src/torrent.cpp index 2ddba23d3..1dd8bfb4e 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -1016,6 +1016,8 @@ namespace libtorrent void torrent::force_recheck() { + if (!valid_metadata()) return; + // if the torrent is already queued to check its files // don't do anything if (should_check_files()