From 2d7944cbb7c12b87becfc6af02987300beea8314 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Tue, 26 Aug 2008 21:34:51 +0000 Subject: [PATCH] Fix #455 force recheck on completed torrents causing crash --- libtorrent/src/torrent.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libtorrent/src/torrent.cpp b/libtorrent/src/torrent.cpp index f0a16bd4f..137f93103 100755 --- a/libtorrent/src/torrent.cpp +++ b/libtorrent/src/torrent.cpp @@ -667,6 +667,7 @@ namespace libtorrent , m_save_path, m_ses.m_files, m_ses.m_disk_thread, m_storage_constructor , m_storage_mode); m_storage = m_owning_storage.get(); + if (!m_picker) m_picker.reset(new piece_picker()); m_picker->init(m_torrent_file->piece_length() / m_block_size , int((m_torrent_file->total_size()+m_block_size-1)/m_block_size)); // assume that we don't have anything