This causes a very annoying bug, where you 'activate' a device e.g. via the website and it doesn't start properly (i.e. you run into the Exception in line 65/66 of Monitor.py), it makes it impossible to deactivate it again, unless you do it via MongoDB.
With this fix the device just won't activate and together with unmanage_inactive, you can then just unmanage the device once you see it failed to start so it doesn't try to restart it over and over again.
This causes a very annoying bug, where you 'activate' a device e.g. via the website and it doesn't start properly (i.e. you run into the Exception in line 65/66 of Monitor.py), it makes it impossible to deactivate it again, unless you do it via MongoDB.
With this fix the device just won't activate and together with unmanage_inactive, you can then just unmanage the device once you see it failed to start so it doesn't try to restart it over and over again.