things
authorBrenden Matthews <brenden1@rty.ca>
Tue, 16 May 2006 03:38:02 +0000 (03:38 +0000)
committerBrenden Matthews <brenden1@rty.ca>
Tue, 16 May 2006 03:38:02 +0000 (03:38 +0000)
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@639 7f574dfc-610e-0410-a909-a81674777703

src/conky.c

index cbc8126..39eb773 100644 (file)
@@ -1224,6 +1224,7 @@ void *imap_thread(struct mail_s* mail)
        while (threads_runnable == run_code && fail < 5) {
                if (fail > 0) {
                        ERR("Trying IMAP connection again for %s@%s (try %i/5)", mail->user, mail->host, fail + 1);
+                       sleep((int)mail->interval);
                }
                update_time = get_time();
                if ((sockfd = socket(PF_INET, SOCK_STREAM, 0)) == -1) {
@@ -1424,6 +1425,7 @@ void *pop3_thread(struct mail_s *mail)
        while (threads_runnable == run_code && fail < 5) {
                if (fail > 0) {
                        ERR("Trying POP3 connection again for %s@%s (try %i/5)", mail->user, mail->host, fail + 1);
+                       sleep((int)mail->interval);
                }
                update_time = get_time();
                if ((sockfd = socket(PF_INET, SOCK_STREAM, 0)) == -1) {