Skip to content
Permalink
Browse files

Error handling

Added non-zero return value on error 
Patch by Dan Wilga
  • Loading branch information...
jheizer committed Apr 13, 2015
1 parent 7f4b53b commit 9cef024ec2fca34e304655a4436e667bada461a8
Showing with 3 additions and 0 deletions.
  1. +3 −0 upnpchannelchanger
@@ -72,6 +72,9 @@ sleep .7
#Change the channel
upnp_send $HOST $CHANGE_ACTION $CHANGE_ARGS

#Check for errors
[[ $recv != *"<New_Channel>$2</New_Channel>"* ]] && exit 1

sleep .1

#Disabled the inactivity timeout

0 comments on commit 9cef024

Please sign in to comment.
You can’t perform that action at this time.