From c89c982c42965d72278452f2063ca9792c1417e4 Mon Sep 17 00:00:00 2001 From: l_samenv Date: Tue, 27 Apr 2021 17:15:28 +0200 Subject: [PATCH] improve comments (poller.py) --- secop/poller.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/secop/poller.py b/secop/poller.py index 0a7de8e..5a4c3b4 100644 --- a/secop/poller.py +++ b/secop/poller.py @@ -227,9 +227,10 @@ class Poller(PollerBase): (where n is the number of regular parameters). """ if not self: - # nothing to do (else we might call time.sleep(float('inf')) below + # nothing to do (else time.sleep(float('inf')) might be called below started_callback() return + # if writeInitParams is not yet done, we do it here for module in self.modules: module.writeInitParams() # do all polls once and, at the same time, insert due info