aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--driver.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/driver.c b/driver.c
index 2e123934..6bcaf90c 100644
--- a/driver.c
+++ b/driver.c
@@ -2194,6 +2194,12 @@ const struct method *proto; /* protocol method table */
totalcount += expunge;
if (NUM_SPECIFIED(ctl->fetchlimit) && totalcount >= fetchlimit)
break;
+
+ /*
+ * Allow time for the server lock to release. if we don't
+ * do this, we'll often hit a locked-mailbox condition and fail.
+ */
+ sleep(3); /* to be _really_ safe, probably need sleep(5)! */
} while
(ok == PS_MAXFETCH);