fix: return ctx error when UP command exists (#140)

This commit is contained in:
Mikhail Bragin
2021-10-26 21:49:05 +02:00
committed by GitHub
parent 595ea0d4f8
commit 0b2c26847b

View File

@@ -191,8 +191,12 @@ func runClient() error {
return err
}
log.Info("stopped Wiretrustee client")
cleanupCh <- struct{}{}
go func() {
cleanupCh <- struct{}{}
}()
log.Info("stopped Wiretrustee client")
return ctx.Err()
return nil
}