Skip to content

Commit baa4e63

Browse files
committed
synchronize idle calls
1 parent 43ac385 commit baa4e63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/github/golovnin/javamail/mock3/IMAPMockFolder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ public Map<String, String> id(Map<String, String> clientParams)
535535
}
536536

537537
@Override
538-
public void idle(boolean once) throws MessagingException {
538+
public synchronized void idle(boolean once) throws MessagingException {
539539
assert Thread.holdsLock(this) : "Thread already hold folder lock, " +
540540
"thats not supposed to be the case";
541541

0 commit comments

Comments
 (0)