Skip to content

Commit

Permalink
Fix publish swarm if its joined any community already
Browse files Browse the repository at this point in the history
  • Loading branch information
ardhipoetra committed Dec 20, 2016
1 parent 3acb336 commit 5c62d09
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion experiments/tribler/channel_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,10 @@ def publish(self, filename, size):
elif self.joined_community:
self.joined_community._disp_create_torrent_from_torrentdef(tdef, int(time.time()))

self.setup_seeder(filename, size)
self.setup_seeder(filename, size)
else:
self._logger.debug("Can't publish yet, no channel or community joined")
reactor.callLater(10.0, self.publish, filename, size)

def _create_test_torrent(self, filename='', size=0):
filepath = path.join(self.upload_dir_path, "%s.data" % filename)
Expand Down

0 comments on commit 5c62d09

Please sign in to comment.