Commit e9a46110 authored by Jose Ernesto Suarez's avatar Jose Ernesto Suarez

fix

parent 4e47d4bd
...@@ -172,9 +172,9 @@ module Wedoops ...@@ -172,9 +172,9 @@ module Wedoops
@logger.debug("401 received! We need to update the token!") @logger.debug("401 received! We need to update the token!")
response = JSON.parse(response.to_s, symbolize_names: true) response = JSON.parse(response.to_s, symbolize_names: true)
if response[:code] == "INVALID_TOKEN" if response[:code] == "INVALID_TOKEN"
@logger.debug("Repeating the call #{repeat[:method]} with #{*repeat[:parameters]}") @logger.debug("Repeating the call #{repeat[:method]}")
self.login self.login
self.send(repeat[:method],*repeat[:parameters]) self.send(repeat[:method], *repeat[:parameters])
end end
else else
@logger.debug("Unexpected response #{response.code}") @logger.debug("Unexpected response #{response.code}")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment