fixed (live) issue #626 (#631)

This commit is contained in:
apa420 2018-07-23 07:12:14 -06:00 committed by fourtf
parent f060907678
commit 133bd6a766

View file

@ -302,18 +302,18 @@ void TwitchChannel::refreshLiveStatus()
//<<<<<<< HEAD //<<<<<<< HEAD
// auto request = makeGetStreamRequest(roomID, QThread::currentThread()); // auto request = makeGetStreamRequest(roomID, QThread::currentThread());
//======= //=======
// auto request = NetworkRequest::twitchRequest(url); auto request = NetworkRequest::twitchRequest(url);
// request.setCaller(QThread::currentThread()); request.setCaller(QThread::currentThread());
//>>>>>>> 9bfbdefd2f0972a738230d5b95a009f73b1dd933 //>>>>>>> 9bfbdefd2f0972a738230d5b95a009f73b1dd933
// request.onSuccess([this, weak = this->weak_from_this()](auto result) { request.onSuccess([this, weak = this->weak_from_this()](auto result) {
// ChannelPtr shared = weak.lock(); ChannelPtr shared = weak.lock();
// if (!shared) return false; if (!shared) return false;
// return this->parseLiveStatus(result.parseRapidJson()); return this->parseLiveStatus(result.parseRapidJson());
// }); });
// request.execute(); request.execute();
} }
bool TwitchChannel::parseLiveStatus(const rapidjson::Document &document) bool TwitchChannel::parseLiveStatus(const rapidjson::Document &document)