Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/auth/ctrlm_thunder_plugin_authservice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
#include <WPEFramework/websocket/websocket.h>
#include <WPEFramework/plugins/plugins.h>

#define SAT_TIMEOUT_RETRIES (2)

using namespace Thunder;
using namespace AuthService;
using namespace WPEFramework;
Expand Down Expand Up @@ -148,7 +146,7 @@ bool ctrlm_thunder_plugin_authservice_t::get_experience(std::string &experience)
bool ctrlm_thunder_plugin_authservice_t::get_sat(std::string &sat, time_t &expiration) {
bool ret = false;
JsonObject params, response;
if(this->call_plugin("getServiceAccessToken", (void *)&params, (void *)&response, SAT_TIMEOUT_RETRIES)) {
if(this->call_plugin("getServiceAccessToken", (void *)&params, (void *)&response)) {
if(response["success"].Boolean()) { // If success doesn't exist, it defaults to false which is fine.
if(response["status"].Number() == 0) {
std::string temp = response["token"].String();
Expand Down