request may get overwritten, use self.request
This commit is contained in:
parent
07c38d7194
commit
2a4990c96c
|
@ -480,11 +480,11 @@ class HTTPUploader(threading.Thread):
|
|||
f = urlopen(request)
|
||||
f.read(11)
|
||||
f.close()
|
||||
self.result = sum(request.data.total)
|
||||
self.result = sum(self.request.data.total)
|
||||
else:
|
||||
self.result = 0
|
||||
except (IOError, SpeedtestUploadTimeout):
|
||||
self.result = sum(request.data.total)
|
||||
self.result = sum(self.request.data.total)
|
||||
|
||||
|
||||
class UnitsDataDescriptor(object):
|
||||
|
|
Loading…
Reference in New Issue