Skip to content

Commit 27bd77a

Browse files
committed
Fix 'outside' detect not firing when 'cross' is present
This commit fixes an issue when having two geofences that are tracking the same collection using the same geometry, except one fence has detect='cross,outside' and the other is just 'outside'. Only the 'cross,outide' fence sends notifications when an object crosses, while the other does not send any events, evn though the object is actually outide.
1 parent bcc6f75 commit 27bd77a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/server/fence.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ func fenceMatch(
179179
detect = "inside"
180180
continue
181181
}
182-
if detect == "exit" {
182+
if detect == "exit" || detect == "cross" {
183183
detect = "outside"
184184
continue
185185
}

0 commit comments

Comments
 (0)