remove success var

This commit is contained in:
callebtc 2022-02-21 09:25:45 +01:00
parent fbafe2b8f1
commit 36952981c2

View File

@ -84,8 +84,7 @@ def create_app(config_object="lnbits.settings") -> FastAPI:
def check_funding_source(app: FastAPI) -> None:
@app.on_event("startup")
async def check_wallet_status():
success = False
while not success:
while True:
error_message, balance = await WALLET.status()
if not error_message:
break