Pynrfjprog create dummy thread, how to avoid/delete them ?

Hi,

I'm devlopping python (v3.9.6) software to flash nRF52832 using pynrfjprog (v10.17.3) package.

The soft is a loop trying to erase and flash. But while debugging with VSCode, I see that pynrfjprog package  create "Dummy-X" threads and never release/kill them.

The point is, if the software run for a long time, more than 2000 thread can be running at the same time and take lot of ressources on the computer.

My question is, is there a way to erase/flash without creating this Dummy thread ? Or is there a way to delete them once the erase/flash action is over ?

Thanks in advance,

Antoine

Related