diff --git a/source/util-event.hpp b/source/util-event.hpp index ec2f9e59..9df2c2ba 100644 --- a/source/util-event.hpp +++ b/source/util-event.hpp @@ -46,7 +46,7 @@ namespace util { event(event<_args...>&& other) : event() { std::lock_guard lg(_lock); - std::lock_guard lg(other._lock); + std::lock_guard lgo(other._lock); _listeners.swap(other._listeners); _cb_fill.swap(other._cb_fill);