Skip to content
Commit faea32ee authored by Krzysztof Nowicki's avatar Krzysztof Nowicki Committed by Laurent Montel
Browse files

Fix unnecessary reauthentication prompts (try 2)



The original fix added a countermeasure to detect if reauthentication
is in progress and in such case avoid retrying it in case of failed
requests as it would confuse the state machine. Unfortunately the
initial state value was set to 0, which would still cause the above
countermeasure to fail in the initial state of the reauthemtication
procedure.

To fix this make the value of the initial state 1-based to fully
ensure that unwanted retriggering does not happen.

Additionally the state variable was implemented as an enum instead of
a plain integer.

Signed-off-by: default avatarKrzysztof Nowicki <krissn@op.pl>
parent 4f902acf
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