Skip to content

Commit

Permalink
when dangle context destroy, call flush to release possible blocked j…
Browse files Browse the repository at this point in the history
…s thread
  • Loading branch information
jingpeng committed Feb 21, 2022
1 parent 2c9ab00 commit 9bcc014
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common/dangle/UDangle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ void UDangleContextDrawEnded(UDangleContextId dangleCtxId) {
}

void UDangleContextDestroy(UDangleContextId dangleCtxId) {
auto dangleCtx = DangleContext::ContextGet(dangleCtxId);
if (dangleCtx) {
dangleCtx->flush();
}
DangleContext::ContextDestroy(dangleCtxId);
}

Expand Down

0 comments on commit 9bcc014

Please sign in to comment.