mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 11:12:22 -05:00
Do not warn if exception on socket close (gateway restart)
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@74 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
f8d4694ef7
commit
81ad8b85c5
@ -51,7 +51,10 @@ public abstract class AbstractServer extends Thread {
|
||||
System.gc();
|
||||
}
|
||||
} catch (IOException e) {
|
||||
DavGatewayTray.warn("Exception while listening for connections", e);
|
||||
// do not warn if exception on socket close (gateway restart)
|
||||
if (!serverSocket.isClosed()) {
|
||||
DavGatewayTray.warn("Exception while listening for connections", e);
|
||||
}
|
||||
} finally {
|
||||
try {
|
||||
if (clientSocket != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user