Skip to content

Commit bb09144

Browse files
committed
Add error handling for stream disconnection in info function
1 parent 4056417 commit bb09144

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

shelldio.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,13 @@ info() {
285285
[Rr]) return 0 ;; # Signal to return to menu
286286
esac
287287
done
288+
289+
# If we reach here, mpv process has died
290+
echo ""
291+
echo "Η σύνδεση με τον σταθμό διακόπηκε"
292+
echo "Πατήστε οποιοδήποτε πλήκτρο για επιστροφή στη λίστα..."
293+
read -r -n1 -s
294+
return 0 # Return to menu when stream dies
288295
}
289296

290297
add_stations() {

0 commit comments

Comments
 (0)