diff --git a/src/xenia/base/logging.cc b/src/xenia/base/logging.cc index 72b04a1f8..10f3065d5 100644 --- a/src/xenia/base/logging.cc +++ b/src/xenia/base/logging.cc @@ -156,9 +156,12 @@ class Logger { void WriteThread() { RingBuffer rb(buffer_, kBufferSize); uint32_t idle_loops = 0; - while (running_) { + while (true) { bool did_write = false; rb.set_write_offset(write_tail_); + if (!running_ && rb.empty()) { + break; + } while (!rb.empty()) { did_write = true;