-
Matias Guijarro authored
'set_state' is called many times, even if state stays ON. It is better to not recreate the task each time it is called. If it has to be recreated, the task has to be stopped first, in order to stop the underlying thread. See comment for more details.
3db37dfa