tfix getservers: wait until they are available - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit c0378a5ba0dd3ba86a013a12b3eec0e267a85ee6 DIR parent 1b2f75bb84970b258827ef3b67529a9f2286961c HTML Author: ThomasV <thomasv@gitorious> Date: Sat, 15 Mar 2014 11:04:11 +0100 fix getservers: wait until they are available Diffstat: M lib/commands.py | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) --- DIR diff --git a/lib/commands.py b/lib/commands.py t@@ -16,6 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +import time from util import * from bitcoin import * from decimal import Decimal t@@ -237,6 +238,8 @@ class Commands: return out def getservers(self): + while not self.network.is_up_to_date(): + time.sleep(0.1) return self.network.get_servers() def getversion(self):