fixed debug issue with disk io thread

This commit is contained in:
Arvid Norberg 2007-10-23 22:11:17 +00:00
parent 49e71de64a
commit a1a564ef51
1 changed files with 4 additions and 0 deletions

View File

@ -341,6 +341,10 @@ namespace libtorrent
// else std::cerr << "DISK THREAD: invoking callback" << std::endl;
try { if (handler) handler(ret, j); }
catch (std::exception&) {}
#ifndef NDEBUG
m_current.storage = 0;
#endif
if (j.buffer && free_buffer)
{