From feaa997be06fe5a12f7eb3fcbe935ff1f443ba33 Mon Sep 17 00:00:00 2001 From: Jorrit Schaap <schaap@astron.nl> Date: Tue, 24 Nov 2015 11:24:02 +0000 Subject: [PATCH] Task #8798: default startonwith=True handler_args={} --- LCS/Messaging/python/messaging/Service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LCS/Messaging/python/messaging/Service.py b/LCS/Messaging/python/messaging/Service.py index 6f5e179845d..d9377df777e 100644 --- a/LCS/Messaging/python/messaging/Service.py +++ b/LCS/Messaging/python/messaging/Service.py @@ -117,8 +117,8 @@ class Service(object): self.options = {"capacity": self._numthreads*20} options = kwargs.pop("options", None) self.parsefullmessage = kwargs.pop("parsefullmessage", False) - self.startonwith = kwargs.pop("startonwith", None) - self.handler_args = kwargs.pop("handler_args", None) + self.startonwith = kwargs.pop("startonwith", True) + self.handler_args = kwargs.pop("handler_args", {}) self.listening = False if len(kwargs): raise AttributeError("Unexpected argument passed to Service class: %s", kwargs) -- GitLab