diff --git a/ecs/client.go b/ecs/client.go index 2d1eda9..2b1a3ad 100644 --- a/ecs/client.go +++ b/ecs/client.go @@ -104,7 +104,7 @@ func (client *Client) WaitUntilGood(ctx context.Context, service *types.Service, } var deadline time.Duration - if timeout == nil { + if timeout != nil { deadline = *timeout } else { deadline = defaultTimeout