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:
parent
538043b079
commit
c506678433
1 changed files with 4 additions and 2 deletions
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in a new issue