new webserver executor to allow multiple instances
This commit is contained in:
parent
05b338ec85
commit
ac3fce2913
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user