Skip to content

Commit

Permalink
Rev1276, Skip last_content_json_update while pending file parsing
Browse files Browse the repository at this point in the history
shortcutme committed Apr 27, 2016
1 parent 93e598c commit 432aa03
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Config.py
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ class Config(object):

def __init__(self, argv):
self.version = "0.3.7"
self.rev = 1275
self.rev = 1276
self.argv = argv
self.action = None
self.config_file = "zeronet.conf"
3 changes: 2 additions & 1 deletion src/File/FileRequest.py
Original file line number Diff line number Diff line change
@@ -136,7 +136,8 @@ def downloader():
if peer:
if not peer.connection:
peer.connect(self.connection) # Assign current connection to peer
peer.last_content_json_update = site.content_manager.contents[params["inner_path"]]["modified"]
if params["inner_path"] in site.content_manager.contents:
peer.last_content_json_update = site.content_manager.contents[params["inner_path"]]["modified"]
if config.verbose:
self.log.debug(
"Same version, adding new peer for locked files: %s, tasks: %s" %

0 comments on commit 432aa03

Please sign in to comment.