aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2023-06-10 12:24:58 -0700
committerGitHub <noreply@github.com>2023-06-10 12:24:58 -0700
commit62ff6c8464dbdd8eb07e8347b356b8739b8c9008 (patch)
tree39de5efd3cc69ca8935eb08319704873ca245063 /src/main
parentce227642dceffd3d014c23d096d08954a168f916 (diff)
parent144aaea2f46d8936009f9320279f58a118b0653c (diff)
downloadtrackermap-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')
-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) {