aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-09-17 14:49:06 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2018-09-17 14:49:06 +1200
commitc6cd09c57dab0981e3c537ff4849f0cf03d3fb89 (patch)
treeeca1e7b4060f78d65e8a55e3d9cecd13d2b645df /src/org/traccar
parentdc83dd3a3b99d79fa2df6f6f018891348b67c3ff (diff)
downloadtrackermap-server-c6cd09c57dab0981e3c537ff4849f0cf03d3fb89.tar.gz
trackermap-server-c6cd09c57dab0981e3c537ff4849f0cf03d3fb89.tar.bz2
trackermap-server-c6cd09c57dab0981e3c537ff4849f0cf03d3fb89.zip
Ignore UDP connection events
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/MainEventHandler.java4
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