From 89cbe57b93506afbdeb4ce3f804dcad68ba0c874 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 6 Jan 2014 08:03:05 +0000 Subject: [PATCH] fix mutex issue introduced in recent patch --- src/file_pool.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/file_pool.cpp b/src/file_pool.cpp index baccc7dd2..0a10a52d4 100644 --- a/src/file_pool.cpp +++ b/src/file_pool.cpp @@ -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) {