bug fix
added a 4 seconds check between servers because some servers may take more than 2 seconds to start sending the stream , and this way iptv-check will wait 4 seconds for data
This commit is contained in:
parent
1ce06c8d09
commit
d6d6e24371
1 changed files with 1 additions and 1 deletions
|
|
@ -113,7 +113,7 @@ case "$chkurl" in
|
|||
http|rtmp|HTTP)
|
||||
wget -q "$chkf" -O "$path/temp/stream" & echo $! > "$path/temp/pid.tmp"
|
||||
pid=$(sed -n 1p < "$path/temp/pid.tmp")
|
||||
sleep 2
|
||||
sleep 4
|
||||
rpid=$(ps -p "$pid" -o pid= | awk '{print$1}')
|
||||
if [[ "$rpid" == "$pid" ]]
|
||||
then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue