Skip to content

Commit

Permalink
remote-connect: increase freerdp timeout
Browse files Browse the repository at this point in the history
Increase the timeout when execing freerdp. Seems that 5 seconds is too
short for detecting some failures.

Signed-off-by: Nuno Sa <[email protected]>
  • Loading branch information
nunojsa committed Jan 7, 2025
1 parent b0b98e6 commit a72aace
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion remote-connect.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ do_connect() {
${freerdp} /u:nsa /p:"${PASSWORD}" /v:${IP_ADDR} /sound /audio-mode:1 /cert:ignore /microphone /multimon /gfx +clipboard +decorations +fonts -wallpaper 2>${LOG_FILE} &
# The logic here is to wait for 5 seconds for freerdp to exit. If that happens, it means we got an error
# so that we dump the log. Hence if get 124 (timeout) we assume success!
timeout 5 tail --pid $! -f /dev/null
timeout 10 tail --pid $! -f /dev/null
[[ $? == 124 ]] && exit 0 || {
zenity --text-info --title "Error xfreerdp log" --width=1000 --height=700 --filename ${LOG_FILE}
exit 1
Expand Down

0 comments on commit a72aace

Please sign in to comment.