Author: fhanik
Date: Mon Sep 14 20:48:12 2009
New Revision: 814841
URL: http://svn.apache.org/viewvc?rev=814841&view=rev
Log:
check for return from the queue
Modified:
tomcat/trunk/java/org/apache/juli/AsyncFileHandler.java
Modified: tomcat/trunk/java/org/apache/juli/AsyncFileHandler.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/juli/AsyncFileHandler.java?rev=814841&r1=814840&r2=814841&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/juli/AsyncFileHandler.java (original)
+++ tomcat/trunk/java/org/apache/juli/AsyncFileHandler.java Mon Sep 14 20:48:12
2009
@@ -124,7 +124,7 @@
while (run) {
try {
LogEntry entry = queue.poll(LOGGER_SLEEP_TIME,
TimeUnit.MILLISECONDS);
- entry.flush();
+ if (entry!=null) entry.flush();
}catch (InterruptedException x) {
Thread.interrupted();
}catch (Exception x) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]