Skip to content

Commit

Permalink
Added patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharpz7 committed Dec 28, 2020
1 parent c4ebd18 commit d2f62bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,16 +128,16 @@ func postCommChecks(t task, id string) error {
counter := 0

fmt.Println("Waiting on server response...")
time.Sleep(2 * time.Second)
for {
resp, code := post(payload, jobURL)
if code != statCode.Accepted {
log.Fatal("Something went wrong using the API!")
return errors.New("Bad API")
}

time.Sleep(1 * time.Second)

if resp.Job == nil {
continue
}
job := resp.Job

stopped := job.Status == jobStatus.Stopped && runningTriggered
Expand Down

0 comments on commit d2f62bd

Please sign in to comment.