From 3f76ac3f79e356d9fb2f09832579921453c2e8a7 Mon Sep 17 00:00:00 2001 From: Jeff MAURY Date: Thu, 23 May 2024 09:40:31 +0200 Subject: [PATCH] fix: don't start provider before it's stopped (#7268) Fixes https://github.com/crc-org/crc-extension/issues/210 Signed-off-by: Jeff MAURY --- .../preferences/PreferencesConnectionActions.svelte | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/renderer/src/lib/preferences/PreferencesConnectionActions.svelte b/packages/renderer/src/lib/preferences/PreferencesConnectionActions.svelte index a7e2451f130ec..c3618905eacd4 100644 --- a/packages/renderer/src/lib/preferences/PreferencesConnectionActions.svelte +++ b/packages/renderer/src/lib/preferences/PreferencesConnectionActions.svelte @@ -63,17 +63,17 @@ async function restartConnectionProvider( '/preferences/resources', getLoggerHandler(provider, providerConnectionInfo), ); - addConnectionToRestartingQueue({ - container: providerConnectionInfo.name, - provider: provider.internalId, - loggerHandlerKey, - }); await window.stopProviderConnectionLifecycle( provider.internalId, providerConnectionInfo, loggerHandlerKey, eventCollect, ); + addConnectionToRestartingQueue({ + container: providerConnectionInfo.name, + provider: provider.internalId, + loggerHandlerKey, + }); } }