Check if folder open before idle

Refs eclipse-ee4j/mail#404
This commit is contained in:
M66B 2019-10-21 18:19:11 +02:00
parent c4f6c7ef7c
commit acd3493720
1 changed files with 1 additions and 1 deletions

View File

@ -1004,7 +1004,7 @@ public class ServiceSynchronize extends ServiceBase {
public void run() {
try {
Log.i(folder.name + " start idle");
while (state.isRunning() && state.isRecoverable()) {
while (ifolder.isOpen() && state.isRunning() && state.isRecoverable()) {
Log.i(folder.name + " do idle");
ifolder.idle(false);
}