From a5db347b72b2a666b08995a36d9e8bc346684e6a Mon Sep 17 00:00:00 2001 From: fossephate Date: Mon, 28 Oct 2024 10:57:36 -0700 Subject: [PATCH] [skip ci] minor --- cw_mweb/lib/cw_mweb.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cw_mweb/lib/cw_mweb.dart b/cw_mweb/lib/cw_mweb.dart index 019a1da80..e718bf139 100644 --- a/cw_mweb/lib/cw_mweb.dart +++ b/cw_mweb/lib/cw_mweb.dart @@ -22,7 +22,7 @@ class CwMweb { nodeUriOverride = uri; if (_rpcClient != null) { await stop(); - await _initializeClient(); + // will be re-started automatically when the next rpc call is made } } @@ -57,7 +57,7 @@ class CwMweb { String debugLogPath = "${appDir.path}/logs/debug.log"; readFileWithTimer(debugLogPath); - _port = await CwMwebPlatform.instance.start(appDir.path, ltcNodeUri); + _port = await CwMwebPlatform.instance.start(appDir.path, nodeUriOverride ?? ltcNodeUri); if (_port == null || _port == 0) { throw Exception("Failed to start server"); }