From 133bd6a766ea7b299882b70228f217ae5931dd6b Mon Sep 17 00:00:00 2001 From: apa420 <17131426+apa420@users.noreply.github.com> Date: Mon, 23 Jul 2018 07:12:14 -0600 Subject: [PATCH] fixed (live) issue #626 (#631) --- src/providers/twitch/TwitchChannel.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/providers/twitch/TwitchChannel.cpp b/src/providers/twitch/TwitchChannel.cpp index 97af4d729..08f0229ec 100644 --- a/src/providers/twitch/TwitchChannel.cpp +++ b/src/providers/twitch/TwitchChannel.cpp @@ -302,18 +302,18 @@ void TwitchChannel::refreshLiveStatus() //<<<<<<< HEAD // auto request = makeGetStreamRequest(roomID, QThread::currentThread()); //======= - // auto request = NetworkRequest::twitchRequest(url); - // request.setCaller(QThread::currentThread()); + auto request = NetworkRequest::twitchRequest(url); + request.setCaller(QThread::currentThread()); //>>>>>>> 9bfbdefd2f0972a738230d5b95a009f73b1dd933 - // request.onSuccess([this, weak = this->weak_from_this()](auto result) { - // ChannelPtr shared = weak.lock(); - // if (!shared) return false; + request.onSuccess([this, weak = this->weak_from_this()](auto result) { + ChannelPtr shared = weak.lock(); + 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)