Track used site per connection
This commit is contained in:
parent
2a8355dba7
commit
75a5ab9441
3 changed files with 7 additions and 1 deletions
|
@ -134,6 +134,8 @@ class FileRequest(object):
|
|||
else:
|
||||
peer = site.addPeer(self.connection.ip, self.connection.port, return_peer=True) # Add or get peer
|
||||
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 config.verbose:
|
||||
self.log.debug(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue