mirror of
https://github.com/MovingBlocks/Terasology
synced 2026-05-24 09:28:22 +00:00
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:
parent
b787951e99
commit
d3530312fb
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue