]> git.tuebingen.mpg.de Git - paraslash.git/commit
afs: Fix error handling of the select command.
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 11 Jun 2016 18:44:01 +0000 (20:44 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Fri, 26 Aug 2016 20:37:56 +0000 (22:37 +0200)
commit048c921d16110d350572698c22033d51b091ce1b
tree9ad3604c4169671e60d68b8ec05ec3a1e77ae2dc
parentab16ee3ef7066e937ab77d42bba0beac659fcbef
afs: Fix error handling of the select command.

com_select() returns success even if the mood or playlist could not
be activated. This commit changes the function to return the error
code from activate_mood_or_playlist() instead.

The function had another minor issue: If the current mood is the
dummy mood, and we failed to switch to the given mood or playlist,
and also failed to switch back to the dummy mood, we try a second
time to activate the dummy mood. This should not happen, but let's
fix it anyway.
afs.c