For the sake of portability: sleep -> g_usleep
authorFridrich Štrba <fridrich.strba@bluewin.ch>
Fri, 25 Jun 2010 07:54:45 +0000 (09:54 +0200)
committerFridrich Štrba <fridrich.strba@bluewin.ch>
Fri, 25 Jun 2010 07:54:45 +0000 (09:54 +0200)
camel/providers/imapx/camel-imapx-server.c

index d5f8ebf..f7c9c91 100644 (file)
@@ -2059,7 +2059,7 @@ imapx_idle_thread (gpointer data)
 
                        if (dwelled < IMAPX_IDLE_DWELL_TIME) {
                                IDLE_UNLOCK(is->idle);
-                               sleep(IMAPX_IDLE_DWELL_TIME - dwelled);
+                               g_usleep(IMAPX_IDLE_DWELL_TIME - dwelled);
                                continue;
                        }
                        IDLE_UNLOCK(is->idle);