From 58978048e88a9d70b14f79670f0efde5b08e574b Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 30 Jul 2008 08:05:04 +0000 Subject: [PATCH] fixed assert in disk_io_thread --- src/disk_io_thread.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/disk_io_thread.cpp b/src/disk_io_thread.cpp index f091c3db8..012658e59 100644 --- a/src/disk_io_thread.cpp +++ b/src/disk_io_thread.cpp @@ -1153,7 +1153,8 @@ namespace libtorrent #ifndef BOOST_NO_EXCEPTIONS try { #endif - TORRENT_ASSERT(ret != -2 || !j.str.empty()); + TORRENT_ASSERT(ret != -2 || !j.str.empty() + || j.action == disk_io_job::hash); if (handler) m_ios.post(bind(handler, ret, j)); #ifndef BOOST_NO_EXCEPTIONS } catch (std::exception&)