diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-03-15 15:39:12 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-03-15 15:39:12 -0700 |
commit | f98c3aa5b65e9fa06bcea38d96959b43f6a38245 (patch) | |
tree | 4931ddab528c6d6cc42e2cff5f820e15ddb4690f /src/main/java/org/traccar/database | |
parent | c43208bf5339244cd9a47348ec9daa1805099718 (diff) | |
download | traccar-server-f98c3aa5b65e9fa06bcea38d96959b43f6a38245.tar.gz traccar-server-f98c3aa5b65e9fa06bcea38d96959b43f6a38245.tar.bz2 traccar-server-f98c3aa5b65e9fa06bcea38d96959b43f6a38245.zip |
Simplify data commands
Diffstat (limited to 'src/main/java/org/traccar/database')
-rw-r--r-- | src/main/java/org/traccar/database/ActiveDevice.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/main/java/org/traccar/database/ActiveDevice.java b/src/main/java/org/traccar/database/ActiveDevice.java index 207fc454b..698cc851e 100644 --- a/src/main/java/org/traccar/database/ActiveDevice.java +++ b/src/main/java/org/traccar/database/ActiveDevice.java @@ -1,5 +1,5 @@ /* - * Copyright 2015 - 2018 Anton Tananaev (anton@traccar.org) + * Copyright 2015 - 2020 Anton Tananaev (anton@traccar.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -45,11 +45,7 @@ public class ActiveDevice { } public void sendCommand(Command command) { - protocol.sendDataCommand(this, command); - } - - public void write(Object message) { - channel.writeAndFlush(new NetworkMessage(message, remoteAddress)); + protocol.sendDataCommand(channel, remoteAddress, command); } } |