Skip to content

Commit

Permalink
FF: Close TPad properly on crash
Browse files Browse the repository at this point in the history
  • Loading branch information
todd committed May 22, 2024
1 parent 3d05289 commit a1839ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions psychopy_bbtk/tpad.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,9 @@ def __init__(
)
# reset timer
self.resetTimer()

def __del__(self):
self.close()

def close(self):
# set mode to 0 on exit
Expand Down

0 comments on commit a1839ce

Please sign in to comment.