From d2681a0b43875c13f8b7cab343467a4d4d2db315 Mon Sep 17 00:00:00 2001 From: iProdigy Date: Mon, 21 Oct 2024 13:27:30 -0700 Subject: [PATCH] fix: capture channelId by value instead of ref --- src/providers/twitch/TwitchIrcServer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/providers/twitch/TwitchIrcServer.cpp b/src/providers/twitch/TwitchIrcServer.cpp index 898ecc41d..16a48f1b7 100644 --- a/src/providers/twitch/TwitchIrcServer.cpp +++ b/src/providers/twitch/TwitchIrcServer.cpp @@ -1149,7 +1149,7 @@ std::optional TwitchIrcServer::getOrPopulateChannelCache( const auto cache = this->channelNamesById_.access(); cache->put(user.id, user.displayName); }, - [this, &channelId] { + [this, channelId] { const auto cache = this->channelNamesById_.access(); if (cache->exists(channelId) && cache->get(channelId).isEmpty()) {