forked from ondra/colnod-connector
fix wrong code
This commit is contained in:
parent
ef0eefa741
commit
3709df6b6d
@ -20,7 +20,7 @@ void ColnodAPI::downloadData()
|
||||
auto login = requestLogin();
|
||||
connect(login.get(), &serversdk::Request::finished, this, [=](){
|
||||
// Get login token
|
||||
if (checkRequest(login)) {
|
||||
if (!checkRequest(login)) {
|
||||
emit error();
|
||||
}
|
||||
|
||||
@ -28,7 +28,7 @@ void ColnodAPI::downloadData()
|
||||
token.fromJson(login->responseData());
|
||||
authToken = token.id();
|
||||
|
||||
std::shared_ptr<Data> data;
|
||||
auto data = std::make_shared<Data>();
|
||||
|
||||
auto errorHandler = [=](std::shared_ptr<serversdk::Request> request){
|
||||
if (!checkRequest(request)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user