diff --git a/src/main/java/org/jabref/Globals.java b/src/main/java/org/jabref/Globals.java index 1a5cc0ee3850..ee8fc481a6f6 100644 --- a/src/main/java/org/jabref/Globals.java +++ b/src/main/java/org/jabref/Globals.java @@ -1,6 +1,7 @@ package org.jabref; import java.awt.GraphicsEnvironment; +import java.io.IOException; import java.util.Optional; import java.util.UUID; @@ -24,6 +25,7 @@ import org.jabref.preferences.JabRefPreferences; import com.google.common.base.StandardSystemProperty; +import com.mashape.unirest.http.Unirest; import com.microsoft.applicationinsights.TelemetryClient; import com.microsoft.applicationinsights.TelemetryConfiguration; import com.microsoft.applicationinsights.internal.shutdown.SDKShutdownActivity; @@ -125,6 +127,9 @@ public static void shutdownThreadPools() { public static void stopBackgroundTasks() { stopTelemetryClient(); + try { + Unirest.shutdown(); + } catch (IOException ignore) {} } public static Optional getTelemetryClient() {