Close Plugin host from inside


#1

Hello,
I’m a newbie. I use the plugin host and some plugin. I would like to close my executable (the Plugin host) after a certain amount of time automatically.
Indeed, I launch the Plugin host with a batch script via Jenkins.
is there a way?
Thanks,
Léo


#2

use a timer to call
JUCEApplication::getInstance()->systemRequestedQuit();
anywhere in your code.