Skip to content

Commit

Permalink
fruity: Fix TcpTunnelConnection teardown logic
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
oleavr committed Nov 13, 2024
1 parent f0593c2 commit 8f04f2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fruity/xpc.vala
Original file line number Diff line number Diff line change
Expand Up @@ -2001,7 +2001,7 @@ namespace Frida.Fruity {

try {
yield connection.close_async ();
} catch (IOError e) {
} catch (GLib.Error e) {
}

close_request.resolve (true);
Expand Down

0 comments on commit 8f04f2f

Please sign in to comment.