Fixed PermissionError while running as non-root
This commit is contained in:
parent
22cdc98d6c
commit
bd61e0a0c6
1 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue