From 0bc0eb15e3eaa279d65ff67f4000665df8b8f8d2 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 4 Jun 2018 00:40:48 +0300 Subject: do not mark server as inactive when dialback exception thrown --- juick-server/src/main/java/com/juick/server/XMPPServer.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'juick-server/src') diff --git a/juick-server/src/main/java/com/juick/server/XMPPServer.java b/juick-server/src/main/java/com/juick/server/XMPPServer.java index 1ae2bbdf..e2018213 100644 --- a/juick-server/src/main/java/com/juick/server/XMPPServer.java +++ b/juick-server/src/main/java/com/juick/server/XMPPServer.java @@ -247,11 +247,7 @@ public class XMPPServer implements ConnectionListener, AutoCloseable { addConnectionOut(connectionOut, Optional.of(socket)); connectionOut.connect(); } catch (IOException e) { - userService.getActiveJIDs().stream().filter(j -> Jid.of(j).getDomain().equals(to)) - .forEach(j -> { - userService.setActiveStatusForJID(j, UserService.ActiveStatus.Inactive); - logger.info("{} is inactive now", j); - }); + logger.info("dialback to " + to + " exception", e); } }); } -- cgit v1.2.3