diff options
author | Anton Tananaev <anton@traccar.org> | 2022-05-01 16:02:11 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-05-01 16:02:11 -0700 |
commit | 19869710f012cbf1a32063021d59aa2d58688e6b (patch) | |
tree | c2abf9b1f7f8944ef3e2c32c60433ed7ae4d50ab /src/main/java/org/traccar/MainEventHandler.java | |
parent | 2a6e75c5d9527cb7b5b54e257fd756e717d5347a (diff) | |
download | trackermap-server-19869710f012cbf1a32063021d59aa2d58688e6b.tar.gz trackermap-server-19869710f012cbf1a32063021d59aa2d58688e6b.tar.bz2 trackermap-server-19869710f012cbf1a32063021d59aa2d58688e6b.zip |
Remove test broadcase
Diffstat (limited to 'src/main/java/org/traccar/MainEventHandler.java')
-rw-r--r-- | src/main/java/org/traccar/MainEventHandler.java | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/main/java/org/traccar/MainEventHandler.java b/src/main/java/org/traccar/MainEventHandler.java index 0e60ac06d..a3f6f4105 100644 --- a/src/main/java/org/traccar/MainEventHandler.java +++ b/src/main/java/org/traccar/MainEventHandler.java @@ -23,14 +23,12 @@ import io.netty.handler.codec.http.HttpRequestDecoder; import io.netty.handler.timeout.IdleStateEvent; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.traccar.broadcast.BroadcastMessage; import org.traccar.config.Keys; import org.traccar.database.StatisticsManager; import org.traccar.helper.DateUtil; import org.traccar.model.Position; import org.traccar.storage.StorageException; -import java.io.IOException; import java.util.Arrays; import java.util.HashSet; import java.util.LinkedHashSet; @@ -63,14 +61,6 @@ public class MainEventHandler extends ChannelInboundHandlerAdapter { LOGGER.warn("Failed to update device", error); } - BroadcastMessage message = new BroadcastMessage(); - message.setPosition(position); - try { - Context.getBroadcastService().sendMessage(message); - } catch (IOException e) { - e.printStackTrace(); - } - String uniqueId = Context.getIdentityManager().getById(position.getDeviceId()).getUniqueId(); StringBuilder builder = new StringBuilder(); |