From 72561729a2257357b9e0688ce463d300a4a4eedb Mon Sep 17 00:00:00 2001 From: mh105 Date: Wed, 5 Jun 2024 22:16:35 -0700 Subject: [PATCH] BF: add the implementation of _close() so eyetracker can be closed properly when ioServer shuts down --- .../sr_research/eyelink/eyetracker.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/psychopy_eyetracker_sr_research/sr_research/eyelink/eyetracker.py b/psychopy_eyetracker_sr_research/sr_research/eyelink/eyetracker.py index 884c68f..6786e72 100644 --- a/psychopy_eyetracker_sr_research/sr_research/eyelink/eyetracker.py +++ b/psychopy_eyetracker_sr_research/sr_research/eyelink/eyetracker.py @@ -1557,6 +1557,10 @@ def _getSamplingRate(self): printExceptionDetailsToStdErr() return EyeTrackerConstants.EYETRACKER_ERROR + def _close(self): + self.setRecordingState(False) + self.setConnectionState(False) + EyeTrackerDevice._close(self) # ================= Command Functions ==========================================