diff --git a/gradle.properties b/gradle.properties index b6e9ad4..3b00792 100644 --- a/gradle.properties +++ b/gradle.properties @@ -12,4 +12,4 @@ archives_base_name=fabricexporter # Dependencies # check this on https://modmuss50.me/fabric.html fabric_version=0.36.0+1.16 -prometheus_version=0.10.0 +prometheus_version=0.12.0 diff --git a/src/main/java/ru/ruscalworld/fabricexporter/FabricExporter.java b/src/main/java/ru/ruscalworld/fabricexporter/FabricExporter.java index 70007e2..b6a5c79 100644 --- a/src/main/java/ru/ruscalworld/fabricexporter/FabricExporter.java +++ b/src/main/java/ru/ruscalworld/fabricexporter/FabricExporter.java @@ -58,7 +58,7 @@ public class FabricExporter implements ModInitializer { }); ServerLifecycleEvents.SERVER_STOPPING.register(server -> { - this.getHttpServer().stop(); + this.getHttpServer().close(); this.getMetricRegistry().getTimer().cancel(); });