Skip to content

Commit

Permalink
lin_xs_cli: keep main loop running while promise jobs are pending
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Jan 11, 2020
1 parent 6e54be5 commit 2619ea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xs/platforms/lin_xs_cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ int main(int argc, char* argv[]) // here
printf(" lin_xs_cli: main() returned a promise; entering event loop\n");

GMainContext *main = g_main_context_default();
while (fxPromiseIsPending(the, &xsVar(2))) {
while (the->promiseJobsFlag || fxPromiseIsPending(the, &xsVar(2))) {
while (the->promiseJobsFlag) {
the->promiseJobsFlag = 0;
fxRunPromiseJobs(the);
Expand Down

0 comments on commit 2619ea4

Please sign in to comment.