aboutsummaryrefslogtreecommitdiffstats
path: root/libemail-engine
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-11-06 03:20:31 +0800
committerMilan Crha <mcrha@redhat.com>2012-11-06 03:21:14 +0800
commit136f4d53bd64ecd14df5035d5f3b46c748661724 (patch)
treed6f2315930c13c378d8c4bee1d49e51f1cd76807 /libemail-engine
parentf083c6b589c6bb80f2af51006f616a91dcbbf979 (diff)
downloadgsoc2013-evolution-136f4d53bd64ecd14df5035d5f3b46c748661724.tar
gsoc2013-evolution-136f4d53bd64ecd14df5035d5f3b46c748661724.tar.gz
gsoc2013-evolution-136f4d53bd64ecd14df5035d5f3b46c748661724.tar.bz2
gsoc2013-evolution-136f4d53bd64ecd14df5035d5f3b46c748661724.tar.lz
gsoc2013-evolution-136f4d53bd64ecd14df5035d5f3b46c748661724.tar.xz
gsoc2013-evolution-136f4d53bd64ecd14df5035d5f3b46c748661724.tar.zst
gsoc2013-evolution-136f4d53bd64ecd14df5035d5f3b46c748661724.zip
Replace e_flag_timed_wait() with e_flag_wait_until()
Diffstat (limited to 'libemail-engine')
-rw-r--r--libemail-engine/e-mail-utils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libemail-engine/e-mail-utils.c b/libemail-engine/e-mail-utils.c
index d8a372ef5a..fdc0e1ed03 100644
--- a/libemail-engine/e-mail-utils.c
+++ b/libemail-engine/e-mail-utils.c
@@ -335,12 +335,12 @@ try_open_book_client (EBookClient *book_client,
while (canceled = g_cancellable_is_cancelled (cancellable),
!canceled && !e_flag_is_set (flag)) {
- GTimeVal wait;
+ gint end_time;
- g_get_current_time (&wait);
- g_time_val_add (&wait, 250000); /* waits 250ms */
+ /* waits 250ms */
+ end_time = g_get_monotonic_time () + (G_TIME_SPAN_SECOND / 4);
- e_flag_timed_wait (flag, &wait);
+ e_flag_wait_until (flag, end_time);
}
if (canceled) {