From 1d64359e6732416c2157cfa5b3c8fa605f12e339 Mon Sep 17 00:00:00 2001 From: Ardhi Putra Pratama H Date: Thu, 12 Jan 2017 14:20:21 +0100 Subject: [PATCH] fixup! Add Channel Download scenarios --- experiments/tribler/channel_download.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/experiments/tribler/channel_download.py b/experiments/tribler/channel_download.py index 64d35be51..1b71f71b1 100755 --- a/experiments/tribler/channel_download.py +++ b/experiments/tribler/channel_download.py @@ -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()