Skip to content

Commit

Permalink
bug fix for issue #25
Browse files Browse the repository at this point in the history
  • Loading branch information
gmuth committed Jun 4, 2024
1 parent 2832be1 commit d8eb036
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/de/gmuth/ipp/client/IppSubscription.kt
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class IppSubscription(
}

fun expired() = expiresAt != null && now().isAfter(expiresAt)
fun expiryAvailable() = leaseStartedAt != null && !leaseDuration.isZero
fun expiryAvailable() = leaseStartedAt != null && attributes.containsKey("notify-lease-duration") && !leaseDuration.isZero

@JvmOverloads
fun pollAndHandleNotifications(
Expand Down

0 comments on commit d8eb036

Please sign in to comment.