Make Test IMAP Server fields volatile

`resetServer()` runs on a different thread.
This commit is contained in:
Gary Russell
2019-01-07 12:42:55 -05:00
parent 1bafe89d49
commit 53e3248d73

View File

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