diff options
Diffstat (limited to 'src/github')
-rw-r--r-- | src/github/daneren2005/dsub/activity/SettingsActivity.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/github/daneren2005/dsub/activity/SettingsActivity.java b/src/github/daneren2005/dsub/activity/SettingsActivity.java index 59fe8cac..2369f9f0 100644 --- a/src/github/daneren2005/dsub/activity/SettingsActivity.java +++ b/src/github/daneren2005/dsub/activity/SettingsActivity.java @@ -588,13 +588,13 @@ public class SettingsActivity extends PreferenceActivity implements SharedPrefer previousInstance = Util.getActiveServer(SettingsActivity.this); testingConnection = true; - Util.setActiveServer(SettingsActivity.this, instance); + MusicService musicService = MusicServiceFactory.getMusicService(SettingsActivity.this); try { - MusicService musicService = MusicServiceFactory.getMusicService(SettingsActivity.this); + musicService.setInstance(instance); musicService.ping(SettingsActivity.this, this); return musicService.isLicenseValid(SettingsActivity.this, null); } finally { - Util.setActiveServer(SettingsActivity.this, previousInstance); + musicService.setInstance(null); testingConnection = false; } } |