diff options
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/writer.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/writer.cc b/src/lib/writer.cc index 572a1c3a4..7fd746488 100644 --- a/src/lib/writer.cc +++ b/src/lib/writer.cc @@ -344,6 +344,10 @@ void Writer::terminate_thread (bool can_throw) { boost::mutex::scoped_lock lock (_mutex); + if (_thread == 0) { + return; + } + _finish = true; _empty_condition.notify_all (); _full_condition.notify_all (); |
