From c6cd09c57dab0981e3c537ff4849f0cf03d3fb89 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 17 Sep 2018 14:49:06 +1200 Subject: Ignore UDP connection events --- src/org/traccar/MainEventHandler.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/org/traccar/MainEventHandler.java b/src/org/traccar/MainEventHandler.java index 2ba7e2af2..81d19ef01 100644 --- a/src/org/traccar/MainEventHandler.java +++ b/src/org/traccar/MainEventHandler.java @@ -87,7 +87,9 @@ public class MainEventHandler extends ChannelInboundHandlerAdapter { @Override public void channelActive(ChannelHandlerContext ctx) throws Exception { - LOGGER.info(formatChannel(ctx.channel()) + " connected"); + if (!(ctx.channel() instanceof DatagramChannel)) { + LOGGER.info(formatChannel(ctx.channel()) + " connected"); + } } @Override -- cgit v1.2.3