mirror of
https://github.com/docker/compose.git
synced 2025-07-29 08:34:15 +02:00
fix SIGSEGV on Enable Watch
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
9b67a48c33
commit
7b9ad96240
@ -72,12 +72,9 @@ func (s *composeService) Up(ctx context.Context, project *types.Project, options
|
||||
var isTerminated atomic.Bool
|
||||
printer := newLogPrinter(options.Start.Attach)
|
||||
|
||||
var watcher *Watcher
|
||||
if options.Start.Watch {
|
||||
watcher, err = NewWatcher(project, options, s.watch)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
watcher, err := NewWatcher(project, options, s.watch)
|
||||
if err != nil && options.Start.Watch {
|
||||
return err
|
||||
}
|
||||
|
||||
var navigationMenu *formatter.LogKeyboard
|
||||
|
Loading…
x
Reference in New Issue
Block a user