Fixed live status not updating when channel is online. (#319)

* Fixed live status not updating when channel is online.
This commit is contained in:
Cranken
2018-04-08 14:45:47 +02:00
committed by pajlada
parent 10f0aadb6c
commit 2b3fa06539
3 changed files with 7 additions and 8 deletions
+5 -6
View File
@@ -184,15 +184,14 @@ void TwitchChannel::setLive(bool newLiveStatus)
{
{
std::lock_guard<std::mutex> lock(this->streamStatusMutex);
if (this->streamStatus.live == newLiveStatus) {
// Nothing changed
return;
if (this->streamStatus.live != newLiveStatus) {
this->streamStatus.live = newLiveStatus;
}
this->streamStatus.live = newLiveStatus;
}
this->onlineStatusChanged.invoke();
if (newLiveStatus) {
this->updateLiveInfo.invoke();
}
}
void TwitchChannel::refreshLiveStatus()