8000 fix: `exit(0)` causes ANR due to destroyed mutex (#1820) · NativeScript/android@94ddb15 · GitHub
[go: up one dir, main page]

Skip to content

Commit 94ddb15

Browse files
fix: exit(0) causes ANR due to destroyed mutex (#1820)
Co-authored-by: Eduardo Speroni <edusperoni@users.noreply.github.com>
1 parent 2bab8f5 commit 94ddb15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test-app/runtime/src/main/cpp/MetadataNode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1918,7 +1918,7 @@ void MetadataNode::BuildMetadata(const string& filesPath) {
19181918
// startup because the receiver is triggered. So even though we are exiting, the receiver will have
19191919
// done its job
19201920

1921-
exit(0);
1921+
_Exit(0);
19221922
}
19231923
else {
19241924
throw NativeScriptException(ss.str());

0 commit comments

Comments
 (0)
0