Connection starts if not already running in the receive() call.
This commit is contained in:
@@ -81,7 +81,9 @@ public class DefaultFolderConnection implements Lifecycle, DisposableBean, Folde
|
||||
|
||||
public synchronized Message[] receive() {
|
||||
try {
|
||||
this.openFolder();
|
||||
if (!this.isRunning()) {
|
||||
this.start();
|
||||
}
|
||||
if (!this.polling) {
|
||||
((AsyncMonitoringStrategy) this.monitoringStrategy).waitForNewMessages(this.folder);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user