Skip to content

Commit

Permalink
fix: prevent server keys concatenating on restarts
Browse files Browse the repository at this point in the history
  • Loading branch information
flexiondotorg committed Jul 23, 2024
1 parent 66b39fd commit 63c7aa3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions stream-sprout
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,11 @@ else
exit 1
fi

eval "$(parse_yaml "${STREAM_SPROUT_YAML}" sprout_)"

# trap ctrl-c and call ctrl_c() to clean up
trap ctrl_c INT

while true; do
eval "$(parse_yaml "${STREAM_SPROUT_YAML}" sprout_)"
echo "Stream Sprout v${VERSION} using ${STREAM_SPROUT_CONFIG}"
if [[ ! "${sprout_server_url}" =~ ^rtmp://.* ]]; then
echo " - Invalid URL: ${sprout_server_url} is not a valid RTMP URL."
Expand Down

0 comments on commit 63c7aa3

Please sign in to comment.