Skip to content

Commit c2155da

Browse files
authored
Fixed missing return (#210)
1 parent 02ab4e2 commit c2155da

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

core/src/main/java/xyz/gianlu/librespot/core/ZeroconfServer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ private void handleAddUser(OutputStream out, Map<String, String> params, String
275275
if (hasActiveSession() && System.currentTimeMillis() - connectionTime > TimeUnit.SECONDS.toMillis(60)) {
276276
if (session.username().equals(username)) {
277277
LOGGER.debug(String.format("Dropped connection attempt because user is already connected. {username: %s}", session.username()));
278+
return;
278279
} else {
279280
session.close();
280281
LOGGER.trace(String.format("Closed previous session to accept new. {deviceId: %s}", session.deviceId()));

0 commit comments

Comments
 (0)