fix(DiscordRPC): null check in preShutdown
This can happen when there is a crash leading to shutdown before everything is set up.
@@ -132,9 +132,11 @@ public synchronized void postInitialise(Context context) {
@Override
public synchronized void preShutdown() {
+ if (thread != null) {
thread.disable();
thread.stop();
}
+ }
@Override
public String getName() {
