diff --git a/src/providers/twitch/twitchchannel.cpp b/src/providers/twitch/twitchchannel.cpp index cdb16af8a..52f36c2d9 100644 --- a/src/providers/twitch/twitchchannel.cpp +++ b/src/providers/twitch/twitchchannel.cpp @@ -181,14 +181,16 @@ void TwitchChannel::addRecentChatter(const std::shared_ptr &m void TwitchChannel::setLive(bool newLiveStatus) { + bool gotNewLiveStatus = false; { std::lock_guard lock(this->streamStatusMutex); if (this->streamStatus.live != newLiveStatus) { + gotNewLiveStatus = true; this->streamStatus.live = newLiveStatus; } } - if (newLiveStatus) { + if (gotNewLiveStatus) { this->updateLiveInfo.invoke(); } }