Fix login/logout problem in spotify.c (see issue #68)