runelite-client: shut down discord service when closed
It is preventing jvm termination otherwise for some reason
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user