fix mutex issue introduced in recent patch

This commit is contained in:
Arvid Norberg 2014-01-06 08:03:05 +00:00
parent f1e8d09126
commit 89cbe57b93
1 changed files with 1 additions and 0 deletions

View File

@ -302,6 +302,7 @@ namespace libtorrent
// storage. If 0 is passed, all files are closed
void file_pool::release(void* st)
{
mutex::scoped_lock l(m_mutex);
TORRENT_ASSERT(m_in_use == 1337);
if (st == 0)
{