diff --git a/include/libtorrent/storage.hpp b/include/libtorrent/storage.hpp index f15bafffe..f06accb5a 100755 --- a/include/libtorrent/storage.hpp +++ b/include/libtorrent/storage.hpp @@ -98,7 +98,7 @@ namespace libtorrent // this will close all open files that are opened for // writing. This is called when a torrent has finished // downloading. - void release(); + void release_files(); #ifndef NDEBUG // overwrites some slots with the @@ -126,7 +126,7 @@ namespace libtorrent , detail::piece_checker_data& data , std::vector& pieces); - void release(); + void release_files(); void allocate_slots(int num_slots); void mark_failed(int index); diff --git a/src/storage.cpp b/src/storage.cpp index dd188f591..eefe6beaa 100755 --- a/src/storage.cpp +++ b/src/storage.cpp @@ -287,7 +287,7 @@ namespace libtorrent assert(info.begin_files() != info.end_files()); } - void storage::release() + void storage::release_files() { m_pimpl->files.release(); } @@ -578,7 +578,7 @@ namespace libtorrent , detail::piece_checker_data& data , std::vector& pieces); - void release(); + void release_files(); void allocate_slots(int num_slots); void mark_failed(int index); @@ -695,14 +695,14 @@ namespace libtorrent { } - void piece_manager::release() + void piece_manager::release_files() { - m_pimpl->release(); + m_pimpl->release_files(); } - void piece_manager::impl::release() + void piece_manager::impl::release_files() { - m_storage.release(); + m_storage.release_files(); } void piece_manager::impl::export_piece_map( diff --git a/src/torrent.cpp b/src/torrent.cpp index 53b9bf9fe..7ac1afc15 100755 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -514,7 +514,7 @@ namespace libtorrent // disconnect all peers and close all // files belonging to the torrent disconnect_all(); - m_storage.release(); + m_storage->release_files(); } void torrent::announce_piece(int index) @@ -706,7 +706,7 @@ namespace libtorrent i->second->disconnect(); } - m_storage->release(); + m_storage->release_files(); // make the next tracker request // be a completed-event @@ -858,7 +858,7 @@ namespace libtorrent m_just_paused = true; // this will make the storage close all // files and flush all cached data - if (m_storage.get()) m_storage->release(); + if (m_storage.get()) m_storage->release_files(); } void torrent::resume()