aboutsummaryrefslogtreecommitdiffstats
path: root/trunk/gpgme/wait.c
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/gpgme/wait.c')
-rw-r--r--trunk/gpgme/wait.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/trunk/gpgme/wait.c b/trunk/gpgme/wait.c
index 47b2261a..26b86d08 100644
--- a/trunk/gpgme/wait.c
+++ b/trunk/gpgme/wait.c
@@ -157,10 +157,11 @@ _gpgme_wait_on_condition ( GpgmeCtx c, int hang, volatile int *cond )
{
DEBUG3 ("waiting... ctx=%p hang=%d cond=%p", c, hang, cond );
do {
- int did_work = do_select();
int any = 0;
struct proc_s *proc;
+ do_select();
+
if ( cond && *cond )
hang = 0;
else {