From a4e22df05302eabea6e6d7b7c9fe086be25e503b Mon Sep 17 00:00:00 2001 From: Lance Chant <13349722+lancechant@users.noreply.github.com> Date: Mon, 1 Jun 2026 10:46:00 +0200 Subject: [PATCH] fix: stopping an alert coming up when all okay Fixed an issue after login where an alert would come up when all was successful Signed-off-by: Lance Chant <13349722+lancechant@users.noreply.github.com> --- utils/pairingService.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/pairingService.ts b/utils/pairingService.ts index d666f6b6a..0a9882a9f 100644 --- a/utils/pairingService.ts +++ b/utils/pairingService.ts @@ -27,6 +27,7 @@ export function startPairingListener( }); socket.on("error", (err) => { + if (!active) return; if (__DEV__) console.error("[PairingService] Socket error:", err); onError?.(err.message); cleanup();