Skip to content

Commit

Permalink
Merge pull request qiniu#174 from forrest-mao/fix_uplaod_bug
Browse files Browse the repository at this point in the history
fix bugs
  • Loading branch information
longbai committed Jul 16, 2015
2 parents 0b1ac2a + 5341b99 commit 11ef598
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions qiniu/services/storage/uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,11 @@ def upload(self):
length = len(block)
crc = crc32(block)
ret, info = self.make_block(block, length, host)
if ret is None and not info.need_retry:
if ret is None and not info.need_retry():
return ret, info
if info.connect_failed:
if info.connect_failed():
host = config.get_default('default_up_host_backup')
if info.need_retry or crc != ret['crc32']:
if info.need_retry() or crc != ret['crc32']:
ret, info = self.make_block(block, length, host)
if ret is None or crc != ret['crc32']:
return ret, info
Expand Down

0 comments on commit 11ef598

Please sign in to comment.