Skip to content
代码片段 群组 项目
提交 e1fd7a65 编辑于 作者: Guillaume Lours's avatar Guillaume Lours 提交者: Nicolas De loof
浏览文件

using as flag of the up command, watch was blocking process shutdown

This happened when sunsetting the application from docker compose down command

Signed-off-by: default avatarGuillaume Lours <705411+glours@users.noreply.github.com>
上级 de478f84
无相关合并请求
......@@ -183,15 +183,13 @@ func (s *composeService) watch(ctx context.Context, syncChannel chan bool, proje
}
options.LogTo.Log(api.WatchLogger, "Watch enabled")
err = eg.Wait()
for {
select {
case <-ctx.Done():
return err
return eg.Wait()
case <-syncChannel:
options.LogTo.Log(api.WatchLogger, "Watch disabled")
ctx.Done()
return err
return nil
}
}
}
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册