mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-28 16:01:30 +00:00
fix getservers: wait until they are available
This commit is contained in:
parent
1b2f75bb84
commit
c0378a5ba0
1 changed files with 3 additions and 0 deletions
|
@ -16,6 +16,7 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
import time
|
||||||
from util import *
|
from util import *
|
||||||
from bitcoin import *
|
from bitcoin import *
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
|
@ -237,6 +238,8 @@ class Commands:
|
||||||
return out
|
return out
|
||||||
|
|
||||||
def getservers(self):
|
def getservers(self):
|
||||||
|
while not self.network.is_up_to_date():
|
||||||
|
time.sleep(0.1)
|
||||||
return self.network.get_servers()
|
return self.network.get_servers()
|
||||||
|
|
||||||
def getversion(self):
|
def getversion(self):
|
||||||
|
|
Loading…
Add table
Reference in a new issue