Skip to content

Commit

Permalink
fix(device): DeviceFlowHelper fails by default ...
Browse files Browse the repository at this point in the history
... in case there is a connection error.
Its purpose is to handle the device flow, not to retry if there are
more general problems, like connection errors. However, the user
may implement this differently in his delegate.
  • Loading branch information
Byron committed Feb 27, 2015
1 parent aef1a4a commit 646a94a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]

name = "yup-oauth2"
version = "0.1.1"
version = "0.1.2"
authors = ["Sebastian Thiel <[email protected]>"]
repository = "https://github.com/Byron/yup-oauth2"
description = "A partial oauth2 implementation, providing the 'device' authorization flow"
Expand Down
2 changes: 1 addition & 1 deletion src/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 646a94a

Please sign in to comment.