fix(DiscordRPC): null check in preShutdown

This can happen when there is a crash leading to shutdown before everything is set up.
This commit is contained in:
Kevin Turner 2021-04-10 09:00:46 -07:00
parent b787951e99
commit d3530312fb

View file

@ -132,8 +132,10 @@ public synchronized void postInitialise(Context context) {
@Override
public synchronized void preShutdown() {
thread.disable();
thread.stop();
if (thread != null) {
thread.disable();
thread.stop();
}
}
@Override