Skip to content

Commit

Permalink
fruity: Skip jailed fallback in case of timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
oleavr committed Nov 13, 2024
1 parent 848f4b5 commit a027f5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fruity/fruity-host-session.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit a027f5b

Please sign in to comment.