diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2023-06-10 12:24:58 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-10 12:24:58 -0700 |
commit | 62ff6c8464dbdd8eb07e8347b356b8739b8c9008 (patch) | |
tree | 39de5efd3cc69ca8935eb08319704873ca245063 /src/main/java/org/traccar | |
parent | ce227642dceffd3d014c23d096d08954a168f916 (diff) | |
parent | 144aaea2f46d8936009f9320279f58a118b0653c (diff) | |
download | trackermap-server-62ff6c8464dbdd8eb07e8347b356b8739b8c9008.tar.gz trackermap-server-62ff6c8464dbdd8eb07e8347b356b8739b8c9008.tar.bz2 trackermap-server-62ff6c8464dbdd8eb07e8347b356b8739b8c9008.zip |
Merge pull request #5112 from reajuria/redis-broadcast-handle-fix
Redis broadcast fix
Diffstat (limited to 'src/main/java/org/traccar')
-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) { |