From d8eb036af1ec8b9911e0f7ab8cf948204fb0ad0c Mon Sep 17 00:00:00 2001 From: Gerhard Muth Date: Tue, 4 Jun 2024 11:36:01 +0200 Subject: [PATCH] bug fix for issue #25 --- src/main/kotlin/de/gmuth/ipp/client/IppSubscription.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/de/gmuth/ipp/client/IppSubscription.kt b/src/main/kotlin/de/gmuth/ipp/client/IppSubscription.kt index 7f720507..b5849926 100644 --- a/src/main/kotlin/de/gmuth/ipp/client/IppSubscription.kt +++ b/src/main/kotlin/de/gmuth/ipp/client/IppSubscription.kt @@ -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(