Skip to content
Snippets Groups Projects
Commit 11755b4e authored by Jan David Mol's avatar Jan David Mol
Browse files

Merge branch 'L2SS-667-fix-beam-off' into 'master'

L2SS-667: Do not stop beam tracking if it hasn't been started

Closes L2SS-667

See merge request !257
parents 9bf5ce04 fdd1b7b4
No related branches found
No related tags found
1 merge request!257L2SS-667: Do not stop beam tracking if it hasn't been started
......@@ -87,6 +87,13 @@ class Beam(lofar_device):
# --------
# overloaded functions
# --------
def init_device(self):
super().init_device()
# thread to perform beam tracking
self.HBAT_beam_tracker = None
@log_exceptions()
def configure_for_initialise(self):
super().configure_for_initialise()
......@@ -126,8 +133,9 @@ class Beam(lofar_device):
@log_exceptions()
def configure_for_off(self):
# Stop thread object
self.HBAT_beam_tracker.stop()
if self.HBAT_beam_tracker:
# Stop thread object
self.HBAT_beam_tracker.stop()
super().configure_for_off()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment