aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/juick')
-rw-r--r--src/main/java/com/juick/server/XMPPManager.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/juick/server/XMPPManager.java b/src/main/java/com/juick/server/XMPPManager.java
index 96572d01..4bee2d63 100644
--- a/src/main/java/com/juick/server/XMPPManager.java
+++ b/src/main/java/com/juick/server/XMPPManager.java
@@ -80,7 +80,7 @@ import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ExecutionException;
-import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Executor;
/**
* @author ugnich
@@ -114,7 +114,7 @@ public class XMPPManager implements NotificationListener {
@Inject
private PMQueriesService pmQueriesService;
@Inject
- private ExecutorService executorService;
+ private Executor taskExecutor;
@Value("${service_user:juick}")
private String serviceUsername;
@Inject
@@ -259,7 +259,7 @@ public class XMPPManager implements NotificationListener {
xmpp.addInboundPresenceListener(event -> {
incomingPresence(event.getPresence());
});
- executorService.submit(() -> {
+ taskExecutor.execute(() -> {
try {
xmpp.connect();
} catch (XmppException e) {