* Fixed a crash in apply_on_ratio when an iterator got invalidated by

erasing the download currently pointed to.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1015 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2007-11-30 14:33:20 +00:00
parent f05dd5b152
commit 4704c91a8f
2 changed files with 11 additions and 8 deletions
+2
View File
@@ -54,6 +54,8 @@ class Download;
// Container for all downloads. Add slots to the slot maps to cause
// some action to be taken when the torrent changes states. Don't
// change the states from outside of core.
//
// Fix apply_on_ratio if the base_type is changed.
class DownloadList : private std::list<Download*> {
public: