Skip to content

Commit 84f66a9

Browse files
committed
fix reading channels
1 parent 86c1b22 commit 84f66a9

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

commands/cloud_deploy.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -100,21 +100,21 @@ func (d *KoolDeploy) Execute(args []string) (err error) {
100100

101101
var chPingDone = make(chan bool)
102102
go func() {
103-
select {
104-
case <-chPingDone:
105-
if isVerbose {
106-
fmt.Println(" - ending deploy ping routine")
107-
}
108-
return
109-
case <-time.After(30 * time.Second):
110-
if isVerbose {
111-
fmt.Println(" - going to ping API while local build runs")
112-
}
113-
if _, err = deployer.PingDeploy(deployCreated); err != nil {
114-
d.Shell().Error(err)
103+
for {
104+
select {
105+
case <-chPingDone:
106+
if isVerbose {
107+
fmt.Println(" - ending deploy ping routine")
108+
}
115109
return
110+
case <-time.After(30 * time.Second):
111+
if isVerbose {
112+
fmt.Println(" - going to ping API while local build runs")
113+
}
114+
if _, err = deployer.PingDeploy(deployCreated); err != nil {
115+
d.Shell().Error(err)
116+
}
116117
}
117-
break
118118
}
119119
}()
120120

0 commit comments

Comments
 (0)