git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
1b2f75b
)
fix getservers: wait until they are available
author
ThomasV
<thomasv@gitorious>
Sat, 15 Mar 2014 10:04:11 +0000 (11:04 +0100)
committer
ThomasV
<thomasv@gitorious>
Sat, 15 Mar 2014 10:04:11 +0000 (11:04 +0100)
lib/commands.py
patch
|
blob
|
history
diff --git
a/lib/commands.py
b/lib/commands.py
index
4dadf34
..
d09b376
100644
(file)
--- a/
lib/commands.py
+++ b/
lib/commands.py
@@
-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
@@
-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):