diff --git a/src/java/davmail/AbstractServer.java b/src/java/davmail/AbstractServer.java index b8c66233..e20f85f7 100644 --- a/src/java/davmail/AbstractServer.java +++ b/src/java/davmail/AbstractServer.java @@ -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) {