From a027f5b08e8ac6e9d68a80212cf6ce8a6849421f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Wed, 13 Nov 2024 20:37:01 +0100 Subject: [PATCH] fruity: Skip jailed fallback in case of timeout --- src/fruity/fruity-host-session.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fruity/fruity-host-session.vala b/src/fruity/fruity-host-session.vala index c3a7dde8f..56c192d6e 100644 --- a/src/fruity/fruity-host-session.vala +++ b/src/fruity/fruity-host-session.vala @@ -1059,7 +1059,7 @@ namespace Frida { try { return yield get_remote_server (cancellable); } catch (Error e) { - if (e is Error.PERMISSION_DENIED) + if (e is Error.PERMISSION_DENIED || e is Error.TIMED_OUT) throw e; return null; } @@ -1136,7 +1136,7 @@ namespace Frida { last_server_check_timer = null; last_server_check_error = null; } else { - if (e is Error.PERMISSION_DENIED) { + if (e is Error.PERMISSION_DENIED || e is Error.TIMED_OUT) { api_error = e; } else if (e is Error.SERVER_NOT_RUNNING) { api_error = new Error.SERVER_NOT_RUNNING ("Unable to connect to remote frida-server");