From d3c772678ba680461cbe17e416b98bacd74eb755 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Thu, 20 Nov 2014 10:30:59 -0800 Subject: Don't switch servers to ping, causes getRandomSongs to fire again --- src/github/daneren2005/dsub/activity/SettingsActivity.java | 6 +++--- 1 file 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; } } -- cgit v1.2.3