Unbreak access logging.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 8 May 2013 18:45:27 +0000 (20:45 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 8 May 2013 18:45:32 +0000 (20:45 +0200)
We forgot to wake up the logger thread. 

accesslog.cpp

index 6c4d367..9cd5be0 100644 (file)
@@ -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()