This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Make SPSession work with SP_CONNECTION_STATE_OFFLINE (Ooops, sorry!)

  • Loading branch information...
iKenndac committed Sep 11, 2011
1 parent 812cb4b commit 2c9b85e306a8849675e5b30169481d82dbeb34f5
Showing with 1 addition and 1 deletion.
  1. +1 −1 common/SPSession.m
View
@@ -587,7 +587,7 @@ - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(N
} else if ([keyPath isEqualToString:@"connectionState"]) {
- if ([self connectionState] == SP_CONNECTION_STATE_LOGGED_IN) {
+ if ([self connectionState] == SP_CONNECTION_STATE_LOGGED_IN || [self connectionState] == SP_CONNECTION_STATE_OFFLINE) {
if (inboxPlaylist == nil) {
sp_playlist *pl = sp_session_inbox_create(session);

0 comments on commit 2c9b85e

Please sign in to comment.