Skip to content

Commit

Permalink
Check that expectedClientRenewalIntervalSeconds is > 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Gromov committed Jul 11, 2018
1 parent 6870669 commit fbe2466
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,10 @@ public int getRenewalThresholdUpdateIntervalMs() {
*/
@Override
public int getExpectedClientRenewalIntervalSeconds() {
return configInstance.getIntProperty(
final int configured = configInstance.getIntProperty(
namespace + "expectedClientRenewalIntervalSeconds",
30).get();
return configured > 0 ? configured : 30;
}

@Override
Expand Down

0 comments on commit fbe2466

Please sign in to comment.