From 7f81a0d4fd973571bf0aaee5d01c165b894a9baf Mon Sep 17 00:00:00 2001 From: edde746 <86283021+edde746@users.noreply.github.com> Date: Sun, 5 Jul 2026 12:52:01 +0200 Subject: [PATCH] fix(windows): retry connectivity listener registration outside input-sync calls INetworkListManagerEvents Advise fails with RPC_E_CANTCALLOUT_ININPUTSYNCCALL when the platform thread is inside an input-synchronous call at subscribe time, and an OnListen error can only surface in Dart as an uncatchable fatal FlutterError. The fork now retries the registration via a message-loop timer and reports only persistent failures through the event sink, where stream onError handlers observe them. --- pubspec.lock | 4 ++-- pubspec.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pubspec.lock b/pubspec.lock index 9ebe535c..10702fef 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -242,8 +242,8 @@ packages: dependency: "direct main" description: path: "packages/connectivity_plus/connectivity_plus" - ref: "2b614414ce95d920880765d07cbb9759699a4563" - resolved-ref: "2b614414ce95d920880765d07cbb9759699a4563" + ref: "4c0d4071150481f76d753c6ce1ff325bb959b9b5" + resolved-ref: "4c0d4071150481f76d753c6ce1ff325bb959b9b5" url: "https://github.com/edde746/plus_plugins" source: git version: "7.1.1" diff --git a/pubspec.yaml b/pubspec.yaml index a95277e4..5a5595e0 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -30,7 +30,7 @@ dependencies: connectivity_plus: git: url: https://github.com/edde746/plus_plugins - ref: 2b614414ce95d920880765d07cbb9759699a4563 + ref: 4c0d4071150481f76d753c6ce1ff325bb959b9b5 path: packages/connectivity_plus/connectivity_plus os_media_controls: git: