Fixed PermissionError while running as non-root

This commit is contained in:
Brikwerk 2020-09-15 15:22:36 -07:00
commit bd61e0a0c6

View file

@ -209,8 +209,11 @@ class Nxbt():
self.resource_manager.shutdown()
# Re-enable the BlueZ input plugin
toggle_input_plugin(True)
# Re-enable the BlueZ input plugin, if we have permission
try:
toggle_input_plugin(True)
except PermissionError:
pass
def _command_manager(self, task_queue, state):
"""Used as the main multiprocessing Process that is launched