From 5ce34907fd8d45c660fe9ad3a05690cbec59dc13 Mon Sep 17 00:00:00 2001 From: Lipu Fei Date: Wed, 6 Aug 2014 17:19:46 +0200 Subject: [PATCH] fix channel refreshState() --- Tribler/Main/vwxGUI/channel.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Tribler/Main/vwxGUI/channel.py b/Tribler/Main/vwxGUI/channel.py index 516e8f92745..7b465fc0bf0 100644 --- a/Tribler/Main/vwxGUI/channel.py +++ b/Tribler/Main/vwxGUI/channel.py @@ -107,10 +107,11 @@ def db_callback(): if channel: t2 = time() + state = iamModerator = None if stateChanged: - state, iamModerator = channel.refreshState() - else: - state = iamModerator = None + result = channel.refreshState() + if result: + state, iamModerator = channel.refreshState() if self.list.channel.isDispersy(): nr_playlists, playlists = self.channelsearch_manager.getPlaylistsFromChannel(channel)