We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed7a3b2 commit c414e6cCopy full SHA for c414e6c
1 file changed
src/Ui/UiWebsocket.py
@@ -228,7 +228,8 @@ def handleRequest(self, req):
228
return self.response(req["id"], {"error": "You don't have permission to run %s" % cmd})
229
230
# Execute in parallel
231
- if cmd in self.async_commands:
+ func_flags = flag.db.get(self.getCmdFuncName(cmd), ())
232
+ if func_flags and "async_run" in func_flags:
233
func = self.asyncWrapper(func)
234
235
# Support calling as named, unnamed parameters and raw first argument too
0 commit comments