Caldav: New workaround for Lightning bug: sleep for 1 second on server unavailable error

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2122 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2013-05-21 22:39:01 +00:00
parent afa4b44fe1
commit b932cd61ed
2 changed files with 6 additions and 0 deletions

View File

@ -1118,6 +1118,12 @@ public class CaldavConnection extends AbstractConnection {
} else if (e instanceof HttpPreconditionFailedException) {
sendErr(HttpStatus.SC_PRECONDITION_FAILED, message);
} else {
// workaround for Lightning bug: sleep for 1 second
try {
Thread.sleep(1000);
} catch (InterruptedException ie) {
// ignore
}
sendErr(HttpStatus.SC_SERVICE_UNAVAILABLE, message);
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB