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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}