aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-06-05 19:45:34 -0700
committerScott Jackson <daneren2005@gmail.com>2013-06-05 19:45:34 -0700
commit481164ef0ff4d41900b07470d424b842b3e4b98a (patch)
treee4ad58ffcedd6285e62c5e6ad084000f01c7a549 /subsonic-android/src
parent159666413e25ff8576f4ac01beeef64320ec393b (diff)
parent52d5958c3804fbe0c0908b00b2f8c2a6cbf512be (diff)
downloaddsub-481164ef0ff4d41900b07470d424b842b3e4b98a.tar.gz
dsub-481164ef0ff4d41900b07470d424b842b3e4b98a.tar.bz2
dsub-481164ef0ff4d41900b07470d424b842b3e4b98a.zip
Merge branch 'master' of https://github.com/daneren2005/Subsonic.git
Diffstat (limited to 'subsonic-android/src')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/util/Util.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/util/Util.java b/subsonic-android/src/github/daneren2005/dsub/util/Util.java
index 45875514..818a4f67 100644
--- a/subsonic-android/src/github/daneren2005/dsub/util/Util.java
+++ b/subsonic-android/src/github/daneren2005/dsub/util/Util.java
@@ -198,10 +198,12 @@ public final class Util {
editor.commit();
if (instance == activeInstance) {
- Util.setActiveServer(context, 0);
- }
-
- if (newInstance == activeInstance) {
+ if(instance != 1) {
+ Util.setActiveServer(context, 1);
+ } else {
+ Util.setOffline(context, true);
+ }
+ } else if (newInstance == activeInstance) {
Util.setActiveServer(context, instance);
}
}