fix: nanohttpd isn't started as daemon thread

This commit is contained in:
Haowei Wen 2021-09-13 16:59:22 +08:00
parent c6b76f5200
commit b1031be748
No known key found for this signature in database
GPG Key ID: 5BC167F73EA558E4

View File

@ -98,7 +98,7 @@ public final class MicrosoftAuthenticationServer extends NanoHTTPD implements Mi
for (int port : new int[]{29111, 29112, 29113, 29114, 29115}) {
try {
MicrosoftAuthenticationServer server = new MicrosoftAuthenticationServer(port);
server.start(NanoHTTPD.SOCKET_READ_TIMEOUT, false);
server.start(NanoHTTPD.SOCKET_READ_TIMEOUT, true);
return server;
} catch (IOException e) {
exception = e;