Skip to content

Commit 17998ed

Browse files
authored
Merge pull request #8 from ISISComputingGroup/fix_gateway_issue
Set timeout to None for CA as it fixes the gateway issue linked in #5
2 parents d155369 + c6694ed commit 17998ed

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

forwarder/update_handlers/ca_update_handler.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +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.
65+
self._pv.timeout = None
66+
6167
# Subscribe with "data_type='time'" to get timestamp and alarm fields
6268
sub = self._pv.subscribe(data_type="time")
6369
sub.add_callback(self._monitor_callback)

0 commit comments

Comments
 (0)