Skip to content

Commit c414e6c

Browse files
committed
Support action async call flag
1 parent ed7a3b2 commit c414e6c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Ui/UiWebsocket.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,8 @@ def handleRequest(self, req):
228228
return self.response(req["id"], {"error": "You don't have permission to run %s" % cmd})
229229

230230
# Execute in parallel
231-
if cmd in self.async_commands:
231+
func_flags = flag.db.get(self.getCmdFuncName(cmd), ())
232+
if func_flags and "async_run" in func_flags:
232233
func = self.asyncWrapper(func)
233234

234235
# Support calling as named, unnamed parameters and raw first argument too

0 commit comments

Comments
 (0)