diff --git a/drivel.go b/drivel.go index 49cad93..f23e857 100644 --- a/drivel.go +++ b/drivel.go @@ -247,7 +247,7 @@ func pollStatus(client *http.Client, mediaId ObjectID) { log := func(err error) { optLogFatal("pollStatus "+string(mediaId), err) } succeeded := false var error TwitterError - for try := 0; try < 6 && !succeeded; try = try + 1 { + for try := 0; try < 6; try = try + 1 { body := get(client, UPLOAD_ENDPOINT+PollStatusParameters(mediaId)) var response PollStatusResponse err := json.Unmarshal(body, &response)