1
0
mirror of https://github.com/moparisthebest/davmail synced 2025-01-05 10:47:59 -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:
mguessan 2010-01-27 22:08:05 +00:00
parent a9235db875
commit ae7b30cf2a

View File

@ -332,7 +332,8 @@ public class ImapConnection extends AbstractConnection {
try { try {
handleFetch(message, rangeIterator.currentIndex, parameters); handleFetch(message, rangeIterator.currentIndex, parameters);
} catch (SocketException e) { } catch (SocketException e) {
DavGatewayTray.warn(new BundleMessage("LOG_CLIENT_CLOSED_CONNECTION"), e); // client closed connection, rethrow exception
throw e;
} catch (IOException e) { } catch (IOException e) {
DavGatewayTray.log(e); DavGatewayTray.log(e);
sendClient(commandId + " NO Unable to retrieve message: " + e.getMessage()); 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")); DavGatewayTray.debug(new BundleMessage("LOG_EXCEPTION_CLOSING_CONNECTION_ON_TIMEOUT"));
} }
} catch (SocketException e) { } catch (SocketException e) {
DavGatewayTray.debug(new BundleMessage("LOG_CONNECTION_CLOSED")); DavGatewayTray.debug(new BundleMessage("LOG_CLIENT_CLOSED_CONNECTION"));
} catch (Exception e) { } catch (Exception e) {
DavGatewayTray.log(e); DavGatewayTray.log(e);
try { try {