Skip to content

Commit

Permalink
ApiManager: Add next success code to delete-pairing
Browse files Browse the repository at this point in the history
It seems, that now the "not logged" error is returned, when the pairing
is not found by backend.
  • Loading branch information
palinek committed Feb 8, 2023
1 parent 94c2025 commit e6f4257
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ApiManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ bool ApiManager::deletePairing(const Json::Value & root)
Json::Value del_root;
if (isSuccess(response, del_root)
|| (del_root.get("error", "").asString() == "no device")
|| (del_root.get("error", "").asString() == "not logged")
)
{
kodi::Log(ADDON_LOG_INFO, "Previous pairing(deviceId:%s) deleted (or no such device)", old_dev_id.c_str());
Expand Down

0 comments on commit e6f4257

Please sign in to comment.