Skip to content

Commit f22df4a

Browse files
committed
fixed infinite wait
1 parent dd89fec commit f22df4a

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

ani-cli

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
version_number="4.10.3"
3+
version_number="4.10.4"
44

55
# UI
66

@@ -325,9 +325,8 @@ play_episode() {
325325
*iina*)
326326
[ -n "$subs_flag" ] && subs_flag="--mpv-${subs_flag#--}"
327327
[ -n "$refr_flag" ] && refr_flag="--mpv-${refr_flag#--}"
328-
# check for existing instance
329328
if pgrep -f "IINA" >/dev/null 2>&1; then
330-
# using IINA instance without --keep-running to prevent hanging
329+
# omit --keep-running when an IINA instance exists to prevent hanging
331330
nohup $player_function --no-stdin --mpv-force-media-title="${allanime_title}Episode ${ep_no}" $subs_flag $refr_flag "$episode" >/dev/null 2>&1 &
332331
else
333332
nohup $player_function --no-stdin --keep-running --mpv-force-media-title="${allanime_title}Episode ${ep_no}" $subs_flag $refr_flag "$episode" >/dev/null 2>&1 &

0 commit comments

Comments
 (0)