fix error on docker wait

Upstream-commit: 82531f71681c9b5bc5a6c871f81ef67f9e92d708
Component: engine
This commit is contained in:
Victor Vieux
2014-01-06 11:11:04 -08:00
parent 1c8add2753
commit 426d639912
+1 -5
View File
@@ -2510,11 +2510,7 @@ func (cli *DockerCli) LoadConfigFile() (err error) {
func waitForExit(cli *DockerCli, containerId string) (int, error) {
body, _, err := cli.call("POST", "/containers/"+containerId+"/wait", nil)
if err != nil {
// If we can't connect, then the daemon probably died.
if err != ErrConnectionRefused {
return -1, err
}
return -1, nil
return -1, err
}
var out APIWait