I believe this is occurring because the NinjaScript editor is opening and this forces a recompile when it detects changes to the cs files in the custom folder.
please correct me if I'm wrong and the ninjascript editor does not have to be open for this, and it is just based on detecting a file system change even if the editor is closed.
so my questions are:
1) how can I call some cleanup code when the addon is about to terminated? would onstatechange terminated work?
2) are there any other cirumstances where an addon might be restarted?
Comment