File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ def adjust_python_path():
6666)
6767from Framework .Utilities import ConfigModule # noqa: E402
6868from Framework .Utilities import live_log_service # noqa: E402
69- from Framework .node_server_state import STATE # noqa: E402
69+ from Framework .node_server_state import STATE , LoginCredentials # noqa: E402
7070from server import main as node_server # noqa: E402
7171
7272
@@ -279,6 +279,10 @@ async def Login(
279279 elif status_code == 502 :
280280 print (Fore .YELLOW + "Server offline. Retrying after 60s" )
281281 await asyncio .sleep (60 )
282+ STATE .reconnect_with_credentials = LoginCredentials (
283+ server = ConfigModule .get_config_value (AUTHENTICATION_TAG , "server_address" ).strip ('"' ).strip (),
284+ api_key = ConfigModule .get_config_value (AUTHENTICATION_TAG , "api-key" ).strip ('"' ).strip (),
285+ )
282286 return
283287 else :
284288 line_color = Fore .RED
You can’t perform that action at this time.
0 commit comments