I have PythonPlugin that launch a thread in the background.
When I want to delete it from main GUI openephys just crash.
This is because the thread is not stoped properly.
So I would need a claabck in the python be aware the pulgin is about be deleted and so I could stop the thread and close socket and opened file properly.
What is the way to that ?
Is there a callback at C++ API for that that could be propagated in python ? (question1)
I tried the __del__ but it do not work...
Is the plugin python instance is deleted properly by the python interpreter ? (question2)