Fix bug where DMAP input would hang after logout

This commit is contained in:
Tobias Eidelpes 2020-11-18 10:36:51 +01:00
parent cc5f04d668
commit ecd9ca5af5

View File

@ -34,7 +34,6 @@ public class DMAPConnection implements Runnable {
this.in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
out.println("ok DMAP");
loginLoop();
out.println("ok");
String userInput;
while (!Thread.currentThread().isInterrupted() && (userInput = in.readLine()) != null) {
@ -98,6 +97,7 @@ public class DMAPConnection implements Runnable {
// Set current user if login successful
currentUser = email;
logger.info("User successfully logged in: " + currentUser.toString());
out.println("ok");
return;
}
}