stop polling after build
This commit is contained in:
@@ -226,6 +226,8 @@ func (p *ProtoPackage) build(ctx context.Context) (time.Duration, error) {
|
|||||||
|
|
||||||
err = cmd.Wait()
|
err = cmd.Wait()
|
||||||
|
|
||||||
|
close(done)
|
||||||
|
|
||||||
Rusage, ok := cmd.ProcessState.SysUsage().(*syscall.Rusage)
|
Rusage, ok := cmd.ProcessState.SysUsage().(*syscall.Rusage)
|
||||||
if !ok {
|
if !ok {
|
||||||
log.Panicf("rusage is not of type *syscall.Rusage, are we running on unix-like?")
|
log.Panicf("rusage is not of type *syscall.Rusage, are we running on unix-like?")
|
||||||
|
Reference in New Issue
Block a user