set open = 0 on failing to open the connection

git-svn-id: https://svn.musicpd.org/mpd/trunk@2446 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes 2004-11-01 15:56:33 +00:00
parent 5f219d925c
commit 94dc65d516

View File

@ -414,7 +414,7 @@ static int shout_openDevice(AudioOutput * audioOutput,
if(sd->opened) return 0; if(sd->opened) return 0;
if(shout_openShoutConn(audioOutput) < 0) { if(shout_openShoutConn(audioOutput) < 0) {
audioOutput->open = 1; audioOutput->open = 0;
return -1; return -1;
} }