From cfabda5d28701db60b8f0ba695dcd14a37234e66 Mon Sep 17 00:00:00 2001 From: Alois Date: Sat, 25 Jul 2026 23:05:04 +0200 Subject: [PATCH] (fix): mtp double connections --- readme.md => README | 0 todo.md => TODO | 2 ++ packages/mtp/src/context.tsx | 6 ------ 3 files changed, 2 insertions(+), 6 deletions(-) rename readme.md => README (100%) rename todo.md => TODO (57%) diff --git a/readme.md b/README similarity index 100% rename from readme.md rename to README diff --git a/todo.md b/TODO similarity index 57% rename from todo.md rename to TODO index 7b8618a..e59c502 100644 --- a/todo.md +++ b/TODO @@ -1,3 +1,5 @@ - Add a bunch of tests - Add packages/hotkeys/ - Full accessability + +-> Most folders in packages/ have specific todos diff --git a/packages/mtp/src/context.tsx b/packages/mtp/src/context.tsx index e9233af..ee3149c 100644 --- a/packages/mtp/src/context.tsx +++ b/packages/mtp/src/context.tsx @@ -403,12 +403,6 @@ export function Provider(props: { clientRef.current = client; setReadyState(client.state); - await client.connect(); - - if (disposed) { - client.disconnect(); - return; - } const authPayload = new Promise< ProtocolMessage<"IdentificationResponse">