forked from premiere/premiere-libtorrent
fixed mutex issue in disk io thread
This commit is contained in:
parent
1c8c2cde54
commit
eb03851276
|
@ -234,7 +234,11 @@ 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