From f89bf7ba7857f9cf592199f23412e2a6ece4385a Mon Sep 17 00:00:00 2001 From: Rutherther Date: Sun, 1 Jan 2023 18:43:58 +0100 Subject: [PATCH] feat(binding): initialize only first time --- src/Core/NosSmooth.LocalBinding/NosBindingManager.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Core/NosSmooth.LocalBinding/NosBindingManager.cs b/src/Core/NosSmooth.LocalBinding/NosBindingManager.cs index 9fa5e53..5925c8c 100644 --- a/src/Core/NosSmooth.LocalBinding/NosBindingManager.cs +++ b/src/Core/NosSmooth.LocalBinding/NosBindingManager.cs @@ -161,6 +161,11 @@ public class NosBindingManager : IDisposable /// A result that may or may not have succeeded. public IResult Initialize() { + if (_networkBinding is not null) + { // already initialized + return Result.FromSuccess(); + } + List errorResults = new List(); var browserInitializationResult = _browserManager.Initialize(); if (!browserInitializationResult.IsSuccess) -- 2.49.0