Skip to content
This repository has been archived by the owner on Apr 16, 2023. It is now read-only.

Commit

Permalink
Move http client close to end of dispose call
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislo27 committed Sep 30, 2020
1 parent 88fdef9 commit 28ceed2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -525,12 +525,12 @@ class RHRE3Application(logger: Logger, logToFile: File?)
persistWindowSettings()
RHRE3.tmpMusic.emptyDirectory()
BeadsSoundSystem.dispose()
httpClient.close()
AnalyticsHandler.track("Close Program",
mapOf("durationSeconds" to ((System.currentTimeMillis() - startTimeMillis) / 1000L)))
AnalyticsHandler.dispose()
MidiHandler.dispose()
SoundCache.unloadAll()
httpClient.close()
}

override fun attemptClose(): Boolean {
Expand Down

0 comments on commit 28ceed2

Please sign in to comment.