donate-cpu: only retry uploading package if it did not work
This commit is contained in:
parent
dd94bfede9
commit
15d0aa503b
|
@ -259,11 +259,12 @@ def uploadResults(package, results):
|
|||
sock.connect(server_address)
|
||||
sendAll(sock, 'write\n' + package + '\n' + results + '\nDONE')
|
||||
sock.close()
|
||||
return True
|
||||
except socket.error:
|
||||
print('Upload failed, retry in 60 seconds')
|
||||
time.sleep(30)
|
||||
pass
|
||||
return package
|
||||
return False
|
||||
|
||||
jobs = '-j1'
|
||||
stopTime = None
|
||||
|
|
Loading…
Reference in New Issue