View | Details | Raw Unified | Return to bug 54398
Collapse All | Expand All

(-)src/main/java/org/apache/log4j/AsyncAppender.java (-1 / +5 lines)
Lines 142-148 Link Here
142
    //   if dispatcher thread has died then
142
    //   if dispatcher thread has died then
143
    //      append subsequent events synchronously
143
    //      append subsequent events synchronously
144
    //   See bug 23021
144
    //   See bug 23021
145
    if ((dispatcher == null) || !dispatcher.isAlive() || (bufferSize <= 0)) {
145
    if (bufferSize <= 0) {
146
      synchronized (appenders) {
146
      synchronized (appenders) {
147
        appenders.appendLoopOnAppenders(event);
147
        appenders.appendLoopOnAppenders(event);
148
      }
148
      }
Lines 177-182 Link Here
177
          }
177
          }
178
178
179
          break;
179
          break;
180
        } else if (!dispatcher.isAlive()) {
181
          buffer.clear();
182
          bufferSize = -1;
183
          break;
180
        }
184
        }
181
185
182
        //
186
        //

Return to bug 54398