diff --git a/Cargo.toml b/Cargo.toml index 9216a6a23..aa7ca2720 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "yup-oauth2" -version = "0.1.1" +version = "0.1.2" authors = ["Sebastian Thiel "] repository = "https://github.com/Byron/yup-oauth2" description = "A partial oauth2 implementation, providing the 'device' authorization flow" diff --git a/src/device.rs b/src/device.rs index 1c96e8c1a..cfc6dc011 100644 --- a/src/device.rs +++ b/src/device.rs @@ -410,7 +410,7 @@ pub trait DeviceFlowHelperDelegate { /// /// Return retry information. fn connection_error(&mut self, hyper::HttpError) -> Retry { - Retry::After(Duration::seconds(5)) + Retry::Abort } /// The server denied the attempt to obtain a request code