Skip to content

Commit c6694ed

Browse files
authored
Add some comments
1 parent ff3d806 commit c6694ed

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

forwarder/update_handlers/ca_update_handler.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,12 @@ def __init__(
5858
(self._pv,) = context.get_pvs(
5959
pv_name, connection_state_callback=self._connection_state_callback
6060
)
61+
62+
# This is needed for the case when the PV doesn't exist before it has been added
63+
# ie. if a gateway has not yet been configured.
64+
# None means no timeout - it will eventually connect.
6165
self._pv.timeout = None
66+
6267
# Subscribe with "data_type='time'" to get timestamp and alarm fields
6368
sub = self._pv.subscribe(data_type="time")
6469
sub.add_callback(self._monitor_callback)

0 commit comments

Comments
 (0)