Skip to content

Commit c067e56

Browse files
NI-DAQmx-wait-changes: Fix bug where timeout DO task was not checked to exist before being stopped.
1 parent 170f39b commit c067e56

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

NI_DAQmx/blacs_workers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,8 @@ def stop_tasks(self, abort):
826826
if not abort:
827827
# Don't want errors about incomplete task to be raised if we are aborting:
828828
self.CI_task.StopTask()
829-
self.DO_task.StopTask()
829+
if self.DO_task is not None:
830+
self.DO_task.StopTask()
830831
if self.CI_task is not None:
831832
self.CI_task.ClearTask()
832833
self.CI_task = None

0 commit comments

Comments
 (0)