From 3f2160ae198be9b7d4f786a4c406116c8c3f167d Mon Sep 17 00:00:00 2001 From: Max Prokhorov Date: Thu, 7 Feb 2019 17:12:15 +0300 Subject: [PATCH] avoid copying callback std::function --- code/espurna/ws.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/espurna/ws.ino b/code/espurna/ws.ino index 39f1b865..4ed0a899 100644 --- a/code/espurna/ws.ino +++ b/code/espurna/ws.ino @@ -411,7 +411,7 @@ void _wsStart(uint32_t client_id) { return; } - for (auto callback : _ws_on_send_callbacks) { + for (auto& callback : _ws_on_send_callbacks) { callback(root); }