Fix transmission of async rc commands

This commit is contained in:
Kovid Goyal
2022-08-25 18:16:03 +05:30
parent ff2ff9c04f
commit 03705cbec0
7 changed files with 25 additions and 5 deletions

View File

@@ -38,6 +38,13 @@ func create_rc_CMD_NAME(args []string) (*utils.RemoteControlCmd, error) {
Version: ProtocolVersion,
NoResponse: NO_RESPONSE_BASE,
}
if IS_ASYNC {
async_id, err := utils.HumanUUID4()
if err != nil {
return nil, err
}
rc.Async = async_id
}
return &rc, nil
}