mirror of
				https://github.com/GayPizzaSpecifications/foundation.git
				synced 2025-11-04 11:39:39 +00:00 
			
		
		
		
	DevUpdateServer: Properly handle update in callback.
This commit is contained in:
		@ -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)
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user