1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-14 03:32:22 -05:00

Another network down fix from Dan Foody

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@702 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2009-09-07 08:15:31 +00:00
parent 8183986842
commit fec65abf7f

View File

@ -113,11 +113,7 @@ public final class ExchangeSessionFactory {
configChecked = true; configChecked = true;
// Reset so next time an problem occurs message will be sent once // Reset so next time an problem occurs message will be sent once
errorSent = false; errorSent = false;
} catch (UnknownHostException exc) { } catch (Exception exc) {
handleNetworkDown(exc);
} catch (NoRouteToHostException exc) {
handleNetworkDown(exc);
} catch (ConnectException exc) {
handleNetworkDown(exc); handleNetworkDown(exc);
} }
return session; return session;
@ -146,8 +142,6 @@ public final class ExchangeSessionFactory {
configChecked = true; configChecked = true;
// Reset so next time an problem occurs message will be sent once // Reset so next time an problem occurs message will be sent once
errorSent = false; errorSent = false;
} catch (NetworkDownException exc) {
throw exc;
} catch (Exception exc) { } catch (Exception exc) {
handleNetworkDown(exc); handleNetworkDown(exc);
} finally { } finally {