diff options
Diffstat (limited to 'Swiften/EventLoop/DummyEventLoop.cpp')
-rw-r--r-- | Swiften/EventLoop/DummyEventLoop.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Swiften/EventLoop/DummyEventLoop.cpp b/Swiften/EventLoop/DummyEventLoop.cpp index 4ea425e..b8e631e 100644 --- a/Swiften/EventLoop/DummyEventLoop.cpp +++ b/Swiften/EventLoop/DummyEventLoop.cpp @@ -1,8 +1,8 @@ /* - * Copyright (c) 2010 Isode Limited. + * Copyright (c) 2010-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #include <Swiften/EventLoop/DummyEventLoop.h> @@ -11,12 +11,13 @@ namespace Swift { DummyEventLoop::DummyEventLoop() { } DummyEventLoop::~DummyEventLoop() { + boost::lock_guard<boost::mutex> lock(eventsMutex_); if (!events_.empty()) { std::cerr << "DummyEventLoop: Unhandled events at destruction time" << std::endl; } events_.clear(); } |