aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRafael E. Ajuria <reajuria@users.noreply.github.com>2023-06-10 19:05:46 +0000
committerRafael E. Ajuria <reajuria@users.noreply.github.com>2023-06-10 19:05:46 +0000
commit144aaea2f46d8936009f9320279f58a118b0653c (patch)
tree39de5efd3cc69ca8935eb08319704873ca245063 /src
parentce227642dceffd3d014c23d096d08954a168f916 (diff)
downloadtrackermap-server-144aaea2f46d8936009f9320279f58a118b0653c.tar.gz
trackermap-server-144aaea2f46d8936009f9320279f58a118b0653c.tar.bz2
trackermap-server-144aaea2f46d8936009f9320279f58a118b0653c.zip
fix: compare string by value
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/traccar/broadcast/RedisBroadcastService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/broadcast/RedisBroadcastService.java b/src/main/java/org/traccar/broadcast/RedisBroadcastService.java
index e619fef60..e87ad5e61 100644
--- a/src/main/java/org/traccar/broadcast/RedisBroadcastService.java
+++ b/src/main/java/org/traccar/broadcast/RedisBroadcastService.java
@@ -111,7 +111,7 @@ public class RedisBroadcastService extends BaseBroadcastService {
public void onMessage(String messageChannel, String message) {
try {
String[] parts = message.split(":", 2);
- if (messageChannel == channel && parts.length == 2 && !id.equals(parts[0])) {
+ if (messageChannel.equals(channel) && parts.length == 2 && !id.equals(parts[0])) {
handleMessage(objectMapper.readValue(parts[1], BroadcastMessage.class));
}
} catch (IOException e) {