Fix bug where DMAP input would hang after logout
This commit is contained in:
parent
cc5f04d668
commit
ecd9ca5af5
@ -34,7 +34,6 @@ public class DMAPConnection implements Runnable {
|
|||||||
this.in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
|
this.in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
|
||||||
out.println("ok DMAP");
|
out.println("ok DMAP");
|
||||||
loginLoop();
|
loginLoop();
|
||||||
out.println("ok");
|
|
||||||
|
|
||||||
String userInput;
|
String userInput;
|
||||||
while (!Thread.currentThread().isInterrupted() && (userInput = in.readLine()) != null) {
|
while (!Thread.currentThread().isInterrupted() && (userInput = in.readLine()) != null) {
|
||||||
@ -98,6 +97,7 @@ public class DMAPConnection implements Runnable {
|
|||||||
// Set current user if login successful
|
// Set current user if login successful
|
||||||
currentUser = email;
|
currentUser = email;
|
||||||
logger.info("User successfully logged in: " + currentUser.toString());
|
logger.info("User successfully logged in: " + currentUser.toString());
|
||||||
|
out.println("ok");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user