Skip to content

Commit

Permalink
fixup! Add Channel Download scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
ardhipoetra committed Jan 12, 2017
1 parent af3db41 commit 1d64359
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions experiments/tribler/channel_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,9 @@ def start_session(self):

def __config_dispersy(self, session):

count_out = 0
while self._dispersy is None and count_out < 100:
time.sleep(1.0)
count_out += 1
if self._dispersy is None:
reactor.callLater(5.0, self.__config_dispersy, session)
return

self.session.lm.dispersy = self._dispersy
# self.session.lm.init()
Expand Down

0 comments on commit 1d64359

Please sign in to comment.