File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
lib/src/main/java/xyz/gianlu/librespot/core Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,12 @@ public static void fillPool() throws IOException {
4848 if (!poolReady ) request ("accesspoint" , "dealer" , "spclient" );
4949 }
5050
51+ public static void refreshPool () throws IOException {
52+ poolReady = false ;
53+ pool .clear ();
54+ request ("accesspoint" , "dealer" , "spclient" );
55+ }
56+
5157 @ NotNull
5258 private static List <String > getUrls (@ NotNull JsonObject body , @ NotNull String type ) {
5359 JsonArray aps = body .getAsJsonArray (type );
Original file line number Diff line number Diff line change @@ -704,6 +704,8 @@ private void reconnect() {
704704 }
705705
706706 try {
707+ ApResolver .refreshPool ();
708+
707709 if (conn != null ) {
708710 conn .socket .close ();
709711 receiver .stop ();
You can’t perform that action at this time.
0 commit comments