added timeout to performget
This commit is contained in:
parent
8b3a09f5af
commit
aaecd0adaf
2 changed files with 2 additions and 1 deletions
|
@ -166,6 +166,7 @@ class Core:
|
|||
dataHash = dataHash.decode()
|
||||
blockFileName = self.blockDataLocation + dataHash + '.dat'
|
||||
if os.path.exists(blockFileName):
|
||||
return # to do, properly check if block is already saved elsewhere
|
||||
raise Exception("Data is already set for " + dataHash)
|
||||
else:
|
||||
blockFile = open(blockFileName, 'w')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue