Skip to content

Commit 53e3248

Browse files
committed
Make Test IMAP Server fields volatile
`resetServer()` runs on a different thread.
1 parent 1bafe89 commit 53e3248

File tree

1 file changed

+2
-2
lines changed
  • spring-integration-test-support/src/main/java/org/springframework/integration/test/mail

1 file changed

+2
-2
lines changed

spring-integration-test-support/src/main/java/org/springframework/integration/test/mail/TestMailServer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,9 @@ else if ("QUIT".equals(line)) {
215215

216216
public static class ImapServer extends MailServer {
217217

218-
private boolean seen;
218+
private volatile boolean seen;
219219

220-
private boolean idled;
220+
private volatile boolean idled;
221221

222222
ImapServer(int port) throws IOException {
223223
super(port);

0 commit comments

Comments
 (0)