Skip to content

Commit

Permalink
lin_xs_cli: fix hang in delete machine: don't unref main context
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Jan 11, 2020
1 parent 6e29865 commit 6e54be5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xs/platforms/lin_xs_cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ int main(int argc, char* argv[]) // here
if (fxPromiseIsRejected(the, &xsVar(2))) {
error = 1;
}
g_main_context_unref(main);
// ISSUE: g_main_context_unref(main); causes xsDeleteMachine() below
// to hang in g_main_context_find_source_by_id() aquiring a lock.
}
xsCatch {
xsStringValue message = xsToString(xsException);
Expand Down

0 comments on commit 6e54be5

Please sign in to comment.