fixed mutex issue in disk io thread

This commit is contained in:
Arvid Norberg 2007-06-17 05:58:12 +00:00
parent 1c8c2cde54
commit eb03851276
1 changed files with 5 additions and 1 deletions

View File

@ -234,7 +234,11 @@ namespace libtorrent
try { if (handler) handler(ret, j); }
catch (std::exception&) {}
if (j.buffer) m_pool.ordered_free(j.buffer);
if (j.buffer)
{
l.lock();
m_pool.ordered_free(j.buffer);
}
}
}
}