mirror of
https://github.com/GayPizzaSpecifications/foundation.git
synced 2025-08-02 21:20:55 +00:00
DevUpdateServer: Properly handle update in callback.
This commit is contained in:
parent
4284791804
commit
a7d7c9f818
@ -96,7 +96,7 @@ class DevUpdateServer(val plugin: FoundationCorePlugin) {
|
||||
|
||||
exchange.respond(200, "Success.")
|
||||
plugin.slF4JLogger.info("DevUpdate Started")
|
||||
UpdateService.updatePlugins(plugin.server.consoleSender)
|
||||
UpdateService.updatePlugins(plugin.server.consoleSender) {
|
||||
plugin.server.scheduler.runTask(plugin) { ->
|
||||
try {
|
||||
plugin.server.shutdown()
|
||||
@ -105,6 +105,7 @@ class DevUpdateServer(val plugin: FoundationCorePlugin) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun disable() {
|
||||
server?.stop(0)
|
||||
|
Loading…
Reference in New Issue
Block a user