Prevent NPE

This can happen on a disconnect event before start
pull/168/head
M66B 5 years ago
parent 538043b079
commit c506678433

@ -678,8 +678,10 @@ public class ServiceSynchronize extends ServiceBase {
private void stop() {
EntityLog.log(this, "Main stop");
state.stop();
state.join();
if (state != null) {
state.stop();
state.join();
}
EntityLog.log(this, "Main stopped");

Loading…
Cancel
Save