prevent log error at shutdown

This commit is contained in:
zzz
2011-07-09 17:26:09 +00:00
parent 94af227b70
commit dccdb99632

View File

@@ -81,7 +81,7 @@ class LogWriter implements Runnable {
if (_currentOut != null)
_currentOut.flush();
} catch (IOException ioe) {
if (++_diskFullMessageCount < MAX_DISKFULL_MESSAGES)
if (_write && ++_diskFullMessageCount < MAX_DISKFULL_MESSAGES)
System.err.println("Error writing the router log - disk full? " + ioe);
}
}