runelite-client: shut down discord service when closed

It is preventing jvm termination otherwise for some reason
This commit is contained in:
Adam
2018-02-12 11:57:02 -05:00
parent 34b8eeafdd
commit f50c657122
2 changed files with 13 additions and 4 deletions

View File

@@ -131,7 +131,7 @@ public class RuneLite
}
// Load swing UI
SwingUtilities.invokeAndWait(() -> setGui(ClientUI.create(properties, client)));
SwingUtilities.invokeAndWait(() -> setGui(ClientUI.create(this, properties, client)));
// Initialize Discord service
discordService.init();
@@ -182,6 +182,11 @@ public class RuneLite
eventBus.post(new ClientUILoaded());
}
public void shutdown()
{
discordService.close();
}
public void setGui(ClientUI gui)
{
this.gui = gui;