Skip to content

Commit

Permalink
DROPME: Temporary fix for #2824
Browse files Browse the repository at this point in the history
  • Loading branch information
qstokkink committed Mar 2, 2017
1 parent a9a509c commit f7ca6ca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Tribler/community/tunnel/hidden_community.py
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,10 @@ def find_download(self, lookup_info_hash):

def create_introduction_point(self, info_hash, amount=1):
# Create a separate key per infohash
self.find_download(info_hash).add_peer(('1.1.1.1', 1024))
if self.find_download(info_hash):
self.find_download(info_hash).add_peer(('1.1.1.1', 1024))
else:
return

if info_hash not in self.session_keys:
self.session_keys[info_hash] = self.crypto.generate_key(u"curve25519")
Expand Down

0 comments on commit f7ca6ca

Please sign in to comment.