1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 02:07:12 +00:00

Prevent NPE

This can happen on a disconnect event before start
This commit is contained in:
M66B 2019-11-13 14:29:45 +01:00
parent 538043b079
commit c506678433

View file

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