Skip to content

Commit

Permalink
force at least one idle call before writting metadata
Browse files Browse the repository at this point in the history
(without this the exit_program_write_metadata_cb could be called
before the exit_program function finished)
  • Loading branch information
nadvornik committed Feb 7, 2009
1 parent 22f5a68 commit b4f63e5
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/utilops.c
Original file line number Diff line number Diff line change
Expand Up @@ -590,8 +590,16 @@ static gboolean file_util_perform_ci_internal(gpointer data)
{
UtilityData *ud = data;

/* this is removed when ud is destroyed */
if (ud->perform_idle_id == -1) ud->perform_idle_id = g_idle_add(file_util_perform_ci_internal, ud);
if (ud->perform_idle_id == -1)
{
/* this function was called directly
just setup idle callback and wait until we are called again
*/

/* this is removed when ud is destroyed */
ud->perform_idle_id = g_idle_add(file_util_perform_ci_internal, ud);
return TRUE;
}

g_assert(ud->flist);

Expand Down

0 comments on commit b4f63e5

Please sign in to comment.