Check if folder open before idle

Refs eclipse-ee4j/mail#404
pull/164/head
M66B 5 years ago
parent c4f6c7ef7c
commit acd3493720

@ -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);
}

Loading…
Cancel
Save