Make Test IMAP Server fields volatile
`resetServer()` runs on a different thread.
This commit is contained in:
@@ -215,9 +215,9 @@ public class TestMailServer {
|
||||
|
||||
public static class ImapServer extends MailServer {
|
||||
|
||||
private boolean seen;
|
||||
private volatile boolean seen;
|
||||
|
||||
private boolean idled;
|
||||
private volatile boolean idled;
|
||||
|
||||
ImapServer(int port) throws IOException {
|
||||
super(port);
|
||||
|
||||
Reference in New Issue
Block a user