Merge pull request #1228 from hwhw/fix_koptcontext_free

wait for background thread before free()ing koptcontext
pull/1229/head
Huang Xin 10 years ago
commit 65938c9f9a

@ -23,6 +23,7 @@ local ContextCacheItem = CacheItem:new{}
function ContextCacheItem:onFree()
if self.kctx.free then
KoptInterface:waitForContext(self.kctx)
DEBUG("free koptcontext", self.kctx)
self.kctx:free()
end

Loading…
Cancel
Save