mirror of
https://github.com/DanielSWolf/rhubarb-lip-sync.git
synced 2026-11-21 12:25:08 +00:00
Making sure log is written in case of exception
This commit is contained in:
@@ -24,6 +24,10 @@ string toString(LogLevel level) {
|
||||
PausableBackendAdapter::PausableBackendAdapter(boost::shared_ptr<text_ostream_backend> backend) :
|
||||
backend(backend) {}
|
||||
|
||||
PausableBackendAdapter::~PausableBackendAdapter() {
|
||||
resume();
|
||||
}
|
||||
|
||||
void PausableBackendAdapter::consume(const record_view& recordView, const string message) {
|
||||
lock_guard<std::mutex> lock(mutex);
|
||||
if (isPaused) {
|
||||
|
||||
Reference in New Issue
Block a user