fixed mutex issue in disk io thread
This commit is contained in:
parent
fa0a4813a6
commit
6ea7ddd7a0
|
@ -234,8 +234,13 @@ namespace libtorrent
|
||||||
try { if (handler) handler(ret, j); }
|
try { if (handler) handler(ret, j); }
|
||||||
catch (std::exception&) {}
|
catch (std::exception&) {}
|
||||||
|
|
||||||
if (j.buffer) m_pool.ordered_free(j.buffer);
|
if (j.buffer)
|
||||||
|
{
|
||||||
|
l.lock();
|
||||||
|
m_pool.ordered_free(j.buffer);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue