upload_symbols: avoid talking to dedupe server w/upload limit

The current code relies on _Upload not doing any where when the upload
limit is reached, but when deduping is enabled, that ends up not being
the case.  Instead, we end up querying the server one symbol at a time
which slows us down significantly.

Add an additional check to the main loop so we break out of the process
when our limit is hit rather than continuing to feed _Upload.

BUG=chromium:209442
TEST=`./buildbot/run_tests` passes
TEST=`cbuildbot daisy-release` works

Change-Id: I5a9c26da59a488898e0d8e664a0ac5d5b303cb01
Reviewed-on: https://chromium-review.googlesource.com/190025
Reviewed-by: David James <davidjames@chromium.org>
Reviewed-by: Don Garrett <dgarrett@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
1 file changed