diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-09-17 14:49:06 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-09-17 14:49:06 +1200 |
commit | c6cd09c57dab0981e3c537ff4849f0cf03d3fb89 (patch) | |
tree | eca1e7b4060f78d65e8a55e3d9cecd13d2b645df /src/org | |
parent | dc83dd3a3b99d79fa2df6f6f018891348b67c3ff (diff) | |
download | trackermap-server-c6cd09c57dab0981e3c537ff4849f0cf03d3fb89.tar.gz trackermap-server-c6cd09c57dab0981e3c537ff4849f0cf03d3fb89.tar.bz2 trackermap-server-c6cd09c57dab0981e3c537ff4849f0cf03d3fb89.zip |
Ignore UDP connection events
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/MainEventHandler.java | 4 |
1 files changed, 3 insertions, 1 deletions
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 |