aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/MainEventHandler.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/MainEventHandler.java')
-rw-r--r--src/org/traccar/MainEventHandler.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/MainEventHandler.java b/src/org/traccar/MainEventHandler.java
index ca3d42e10..933d0d975 100644
--- a/src/org/traccar/MainEventHandler.java
+++ b/src/org/traccar/MainEventHandler.java
@@ -29,7 +29,7 @@ public class MainEventHandler extends IdleStateAwareChannelHandler {
@Override
public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) {
-
+
if (e.getMessage() != null) {
if (e.getMessage() instanceof Position) {
@@ -50,7 +50,7 @@ public class MainEventHandler extends IdleStateAwareChannelHandler {
}
}
}
-
+
private static String formatChannel(Channel channel) {
return String.format("[%08X]", channel.getId());
}
@@ -64,7 +64,7 @@ public class MainEventHandler extends IdleStateAwareChannelHandler {
public void channelDisconnected(ChannelHandlerContext ctx, ChannelStateEvent e) {
Log.info(formatChannel(e.getChannel()) + " disconnected");
e.getChannel().close();
-
+
Context.getConnectionManager().removeActiveDevice(e.getChannel());
}