Skip to content
This repository has been archived by the owner on Dec 10, 2019. It is now read-only.

Commit

Permalink
bugfix: do not set timeout to 0 when none was configured
Browse files Browse the repository at this point in the history
  • Loading branch information
Argelbargel committed Nov 21, 2017
1 parent b22505d commit 09d037b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ public static GitLabAPI connect(String url, String token, boolean ignoreCertific
try {
GitlabAPI delegate = GitlabAPI.connect(url, token);
delegate.ignoreCertificateErrors(ignoreCertificateErrors);
delegate.setRequestTimeout(requestTimeout);
if (requestTimeout != 0) {
delegate.setRequestTimeout(requestTimeout);
}
return new GitLabAPI(delegate);
} catch (Exception e) {
throw new GitLabAPIException(e);
Expand Down

0 comments on commit 09d037b

Please sign in to comment.