Skip to content

Commit

Permalink
typo from Finland
Browse files Browse the repository at this point in the history
  • Loading branch information
Ridai Govinda Pombo committed May 18, 2020
1 parent 02a9257 commit 5f07013
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cli/remote_build.go
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ func (cmd *RemoteCmd) submitBuild(project *Project, tagMap map[string]string) er
CONN:
conn, _, _, err := ws.DefaultDialer.Dial(context.Background(), url)

finnish := make(chan struct{})
finish := make(chan struct{})

if err != nil {
remoteErrored()
Expand All @@ -927,7 +927,7 @@ func (cmd *RemoteCmd) submitBuild(project *Project, tagMap map[string]string) er
go func() {
for {
select {
case <-finnish:
case <-finish:
return
case <-time.After(5 * time.Second):
if err := wsutil.WriteClientMessage(conn, ws.OpPing, []byte("hi Dispatcher")); err != nil {
Expand All @@ -952,13 +952,13 @@ func (cmd *RemoteCmd) submitBuild(project *Project, tagMap map[string]string) er
if err == io.EOF {
if buildSuccess {
log.Infoln("Build Completed!")
close(finnish)
close(finish)
return nil
} else if buildFailed {
log.Errorf("Build failed!")
log.Infof("Build Log: %v", managementLogUrl(url, project.OrgSlug, project.Label))

close(finnish)
close(finish)
return nil
} else {
if !recentReconnect && reconnectCount < 15 {
Expand All @@ -967,7 +967,7 @@ func (cmd *RemoteCmd) submitBuild(project *Project, tagMap map[string]string) er
}
log.Tracef("Build not completed, trying to reconnect")
conn.Close()
close(finnish)
close(finish)
recentReconnect = true
reconnectCount += 1
goto CONN
Expand All @@ -981,7 +981,7 @@ func (cmd *RemoteCmd) submitBuild(project *Project, tagMap map[string]string) er
}
log.Infof("Build Log: %v", managementLogUrl(url, project.OrgSlug, project.Label))

close(finnish)
close(finish)
return nil
}
}
Expand Down

0 comments on commit 5f07013

Please sign in to comment.