We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0e85e1a + ceea94a commit c2324ebCopy full SHA for c2324eb
1 file changed
lib/src/main/java/xyz/gianlu/librespot/ZeroconfServer.java
@@ -201,9 +201,10 @@ public void close() throws IOException {
201
}
202
203
public void closeSession() throws IOException {
204
- sessionListeners.forEach(l -> l.sessionClosing(session));
+ if (session == null) return;
205
206
- if (session != null) session.close();
+ sessionListeners.forEach(l -> l.sessionClosing(session));
207
+ session.close();
208
session = null;
209
210
0 commit comments