From ce5a30f88114c160a6e26605eb0ad14980ef3aa6 Mon Sep 17 00:00:00 2001 From: "Christian Tremblay, ing" Date: Sun, 25 Oct 2020 11:15:54 -0400 Subject: [PATCH] Forcing a default value of 0 for lifetime... just in case. Fix for issue #364 Signed-off-by: Christian Tremblay, ing. --- py34/bacpypes/service/cov.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py34/bacpypes/service/cov.py b/py34/bacpypes/service/cov.py index 0288713..79b7c0b 100644 --- a/py34/bacpypes/service/cov.py +++ b/py34/bacpypes/service/cov.py @@ -90,7 +90,7 @@ class Subscription(OneShotTask, DebugContents): 'lifetime', ) - def __init__(self, obj_ref, client_addr, proc_id, obj_id, confirmed, lifetime): + def __init__(self, obj_ref, client_addr, proc_id, obj_id, confirmed, lifetime=0): if _debug: Subscription._debug("__init__ %r %r %r %r %r %r", obj_ref, client_addr, proc_id, obj_id, confirmed, lifetime) OneShotTask.__init__(self)