Browse Source

avoid copying callback std::function

sensors
Max Prokhorov 5 years ago
parent
commit
3f2160ae19
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      code/espurna/ws.ino

+ 1
- 1
code/espurna/ws.ino View File

@ -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);
}


Loading…
Cancel
Save