Permalink
Browse files

fixed IDLE usage in CFStream implementation

  • Loading branch information...
1 parent fc0df87 commit 349fd78376055dca724004f5249877f670e312c5 @dinhviethoa dinhviethoa committed Dec 5, 2011
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/data-types/mailstream.c
@@ -429,7 +429,6 @@ void mailstream_interrupt_idle(mailstream * s)
if (s->low->driver == mailstream_cfstream_driver) {
mailstream_cfstream_interrupt_idle(s);
- return;
}
else {
mailstream_cancel_notify(s->idle);
@@ -444,12 +443,11 @@ void mailstream_unsetup_idle(mailstream * s)
if (s->low->driver == mailstream_cfstream_driver) {
mailstream_cfstream_unsetup_idle(s);
- return;
}
else {
mailstream_cancel_free(s->idle);
+ s->idle = NULL;
}
- s->idle = NULL;
s->idling = 0;
}

0 comments on commit 349fd78

Please sign in to comment.