new webserver executor to allow multiple instances

This commit is contained in:
lukas-heiligenbrunner 2020-03-20 13:36:43 +01:00
parent 05b338ec85
commit ac3fce2913

View File

@ -28,7 +28,7 @@ class Webserver {
server.createContext("/senddata/admindata", AdminRequests())
server.createContext("/senddata/newdate", NewDateRequest())
server.createContext("/senddata/Devicedata", DeviceRequest())
server.executor = null // creates a default executor
server.executor = java.util.concurrent.Executors.newCachedThreadPool() // creates a default executor
server.start()
info("Server available at http://127.0.0.1:8000 now")
} catch (e: BindException) {