diff --git a/Outputs/Speaker.hpp b/Outputs/Speaker.hpp index a64082d42..85f7ecb8b 100644 --- a/Outputs/Speaker.hpp +++ b/Outputs/Speaker.hpp @@ -91,7 +91,7 @@ class Speaker { std::shared_ptr>> queued_functions = queued_functions_; queued_functions_.reset(); _queue->enqueue([queued_functions] { - for(auto function : *queued_functions) { + for(auto &function : *queued_functions) { function(); } });