Transfer response_timeout

This commit is contained in:
Kovid Goyal
2022-08-17 13:33:24 +05:30
parent a5876e5231
commit 605882582e
3 changed files with 8 additions and 3 deletions

View File

@@ -90,7 +90,7 @@ func create_serializer(password string, encoded_pubkey string) (ans serializer_f
return simple_serializer, nil
}
func send_rc_command(rc *utils.RemoteControlCmd) (err error) {
func send_rc_command(rc *utils.RemoteControlCmd, timeout float64) (err error) {
serializer, err = create_serializer(global_options.password, "")
if err != nil {
return

View File

@@ -21,7 +21,7 @@ func run_CMD_NAME(cmd *cobra.Command, args []string) (err error) {
if err == nil {
rc.NoResponse = nrv
}
err = send_rc_command(&rc)
err = send_rc_command(&rc, WAIT_TIMEOUT)
return
}