1
0
mirror of https://github.com/JoelBender/bacpypes synced 2025-09-28 22:15:23 +08:00

Forcing a default value of 0 for lifetime... just in case.

Fix for issue #364

Signed-off-by: Christian Tremblay, ing. <christian.tremblay@servisys.com>
This commit is contained in:
Christian Tremblay, ing 2020-10-25 11:15:54 -04:00
parent f834e53c55
commit ce5a30f881

View File

@ -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)