|
|
|
@ -179,10 +179,10 @@ public class ImapClient {
@@ -179,10 +179,10 @@ public class ImapClient {
|
|
|
|
|
public ImapClient start() { |
|
|
|
|
stop(); |
|
|
|
|
|
|
|
|
|
LOG.debug("Erzeuge ListeningThread…"); |
|
|
|
|
LOG.info("Erzeuge ListeningThread für…",username); |
|
|
|
|
(listeningThread = new ListeningThread()).start(); |
|
|
|
|
|
|
|
|
|
LOG.debug("Erzeuge Heartbeat…"); |
|
|
|
|
LOG.info("Erzeuge Heartbeat für {}…",username); |
|
|
|
|
(heartbeat = new Heartbeat()).start(); |
|
|
|
|
|
|
|
|
|
return this; |
|
|
|
@ -190,7 +190,7 @@ public class ImapClient {
@@ -190,7 +190,7 @@ public class ImapClient {
|
|
|
|
|
|
|
|
|
|
public ImapClient stop(){ |
|
|
|
|
if (listeningThread != null) { |
|
|
|
|
LOG.debug("Stoppe alten ListeningThread…"); |
|
|
|
|
LOG.info("Stoppe alten ListeningThread für {}…",username); |
|
|
|
|
listeningThread.dropListeners().doStop(); |
|
|
|
|
listeningThread = null; |
|
|
|
|
} |
|
|
|
|