Changeset 1161
- Timestamp:
- 04/10/10 03:05:39 (3 years ago)
- File:
-
- 1 edited
-
trunk/rtorrent/src/core/download_list.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/rtorrent/src/core/download_list.cc
r1160 r1161 601 601 rpc::commands.call_catch("event.download.finished", rpc::make_target(download), torrent::Object(), "Download event action failed: "); 602 602 603 if (download->resume_flags() != ~uint32_t()) 604 throw torrent::internal_error("DownloadList::confirm_finished(...) download->resume_flags() != ~uint32_t()."); 603 // if (download->resume_flags() != ~uint32_t()) 604 // throw torrent::internal_error("DownloadList::confirm_finished(...) download->resume_flags() != ~uint32_t()."); 605 606 // See #1292. 607 // 608 // Just reset the value for the moment. If a torrent finishes while 609 // others are hashing, or some other situtation that causes resume 610 // flag to change could cause the state to be invalid. 611 // 612 // TODO: Add a check when setting the flags to see if the torrent is 613 // being hashed. 614 download->set_resume_flags(~uint32_t()); 605 615 606 616 if (!download->is_active() && rpc::call_command_value("d.state", rpc::make_target(download)) == 1)
Note: See TracChangeset
for help on using the changeset viewer.
