From 8f04f2f67784097a189671b4e03074926ba5efbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Wed, 13 Nov 2024 18:01:14 +0100 Subject: [PATCH] fruity: Fix TcpTunnelConnection teardown logic Where it turns out IOStream.close_async() may throw other errors than just IOError. This is a bug in gio-2.0.vapi, but still, once fixed there we still want to catch (and ignore) all errors. Kudos to @mrmacete for helping track this one down. --- src/fruity/xpc.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fruity/xpc.vala b/src/fruity/xpc.vala index 9d9f772c1..54f0d4a3e 100644 --- a/src/fruity/xpc.vala +++ b/src/fruity/xpc.vala @@ -2001,7 +2001,7 @@ namespace Frida.Fruity { try { yield connection.close_async (); - } catch (IOError e) { + } catch (GLib.Error e) { } close_request.resolve (true);