diff options
Diffstat (limited to 'gpgme/wait.c')
| -rw-r--r-- | gpgme/wait.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/gpgme/wait.c b/gpgme/wait.c index 69c0a11a..11786490 100644 --- a/gpgme/wait.c +++ b/gpgme/wait.c @@ -52,8 +52,6 @@ struct wait_item_s int dir; }; -static void run_idle (void); - void _gpgme_fd_table_init (fd_table_t fdt) @@ -133,14 +131,6 @@ gpgme_register_idle (GpgmeIdleFunc idle) return old_idle; } -static void -run_idle () -{ - _gpgme_engine_housecleaning (); - if (idle_function) - idle_function (); -} - /* Wait on all file descriptors listed in FDT and process them using the registered callbacks. Returns -1 on error (with errno set), 0 @@ -254,8 +244,8 @@ gpgme_wait (GpgmeCtx ctx, GpgmeError *status, int hang) } UNLOCK (ctx_done_list_lock); - if (hang) - run_idle (); + if (hang && idle_function) + idle_function (); } while (hang && (!ctx || !ctx->cancel)); |
