Skip to content

Commit

Permalink
fix: ignore connection
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerixyz committed Sep 17, 2023
1 parent e0279eb commit 38d602d
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions src/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -747,19 +747,21 @@ void Application::initSeventvEventAPI()
chan.updateSeventvUser(data);
});
});
this->twitch->seventvEventAPI->signals_.personalEmoteSetAdded.connect(
[&](const auto &data) {
postToThread([this, data]() {
this->twitch->forEachChannelAndSpecialChannels([=](auto chan) {
if (auto *twitchChannel =
dynamic_cast<TwitchChannel *>(chan.get()))
{
twitchChannel->upsertPersonalSeventvEmotes(data.first,
data.second);
}
std::ignore =
this->twitch->seventvEventAPI->signals_.personalEmoteSetAdded.connect(
[&](const auto &data) {
postToThread([this, data]() {
this->twitch->forEachChannelAndSpecialChannels(
[=](auto chan) {
if (auto *twitchChannel =
dynamic_cast<TwitchChannel *>(chan.get()))
{
twitchChannel->upsertPersonalSeventvEmotes(
data.first, data.second);
}
});
});
});
});

this->twitch->seventvEventAPI->start();
}
Expand Down

0 comments on commit 38d602d

Please sign in to comment.