Fix #455 force recheck on completed torrents causing crash

This commit is contained in:
Andrew Resch 2008-08-26 21:34:51 +00:00
parent de5dd796d0
commit 2d7944cbb7
1 changed files with 1 additions and 0 deletions

View File

@ -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