diff options
author | Rafael E. Ajuria <reajuria@users.noreply.github.com> | 2023-06-10 19:05:46 +0000 |
---|---|---|
committer | Rafael E. Ajuria <reajuria@users.noreply.github.com> | 2023-06-10 19:05:46 +0000 |
commit | 144aaea2f46d8936009f9320279f58a118b0653c (patch) | |
tree | 39de5efd3cc69ca8935eb08319704873ca245063 /src | |
parent | ce227642dceffd3d014c23d096d08954a168f916 (diff) | |
download | trackermap-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.java | 2 |
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) { |