mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 19:22:22 -05:00
IMAP: rethrow SocketException after error in handleFetch
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@932 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
a9235db875
commit
ae7b30cf2a
@ -332,7 +332,8 @@ public class ImapConnection extends AbstractConnection {
|
||||
try {
|
||||
handleFetch(message, rangeIterator.currentIndex, parameters);
|
||||
} catch (SocketException e) {
|
||||
DavGatewayTray.warn(new BundleMessage("LOG_CLIENT_CLOSED_CONNECTION"), e);
|
||||
// client closed connection, rethrow exception
|
||||
throw e;
|
||||
} catch (IOException e) {
|
||||
DavGatewayTray.log(e);
|
||||
sendClient(commandId + " NO Unable to retrieve message: " + e.getMessage());
|
||||
@ -507,7 +508,7 @@ public class ImapConnection extends AbstractConnection {
|
||||
DavGatewayTray.debug(new BundleMessage("LOG_EXCEPTION_CLOSING_CONNECTION_ON_TIMEOUT"));
|
||||
}
|
||||
} catch (SocketException e) {
|
||||
DavGatewayTray.debug(new BundleMessage("LOG_CONNECTION_CLOSED"));
|
||||
DavGatewayTray.debug(new BundleMessage("LOG_CLIENT_CLOSED_CONNECTION"));
|
||||
} catch (Exception e) {
|
||||
DavGatewayTray.log(e);
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user