From: Steinar H. Gunderson Date: Wed, 8 May 2013 18:45:27 +0000 (+0200) Subject: Unbreak access logging. X-Git-Tag: 1.0.0~38 X-Git-Url: https://git.sesse.net/?p=cubemap;a=commitdiff_plain;h=1eb848c868a11973207bfcdc83925b669163c234;hp=ea11d357cc010351871392e433880fb2401161b2 Unbreak access logging. We forgot to wake up the logger thread.  --- diff --git a/accesslog.cpp b/accesslog.cpp index 6c4d367..9cd5be0 100644 --- a/accesslog.cpp +++ b/accesslog.cpp @@ -23,8 +23,11 @@ AccessLogThread::AccessLogThread(const string &filename) void AccessLogThread::write(const ClientStats& client) { - MutexLock lock(&mutex); - pending_writes.push_back(client); + { + MutexLock lock(&mutex); + pending_writes.push_back(client); + } + wakeup(); } void AccessLogThread::do_work()