mirror of https://github.com/status-im/consul.git
agent: Handle cancel for idle wait
This commit is contained in:
parent
bfb2b93d75
commit
3286074758
|
@ -220,7 +220,11 @@ WAIT:
|
|||
}
|
||||
case <-time.After(spec.Wait):
|
||||
// Acts like a heartbeat, since there is no output
|
||||
a.remoteExecWriteOutput(&event, num, nil)
|
||||
if !a.remoteExecWriteOutput(&event, num, nil) {
|
||||
close(writer.CancelCh)
|
||||
exitCode = 255
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue