From 3c8587f9195df51d5d8271f167b20cfc41f6cf7d Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 16 Nov 2007 19:35:09 +0000 Subject: [PATCH] fixed bug where removing all trackers would crash libtorrent. Fixes #205 --- src/torrent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/torrent.cpp b/src/torrent.cpp index 24ea63b7a..b71555f0f 100755 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -498,7 +498,7 @@ namespace libtorrent { INVARIANT_CHECK; - if (m_torrent_file->trackers().empty()) return false; + if (m_trackers.empty()) return false; if (m_just_paused) {