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:
mguessan 2007-08-13 08:47:29 +00:00
parent f8d4694ef7
commit 81ad8b85c5
1 changed files with 4 additions and 1 deletions

View File

@ -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) {