From 4f505f57df520921fce5bfc5c07093cc7af9ec7c Mon Sep 17 00:00:00 2001 From: johaoRosasRosillo Date: Thu, 5 May 2022 16:55:07 -0400 Subject: [PATCH] send info control zone only when has ids --- lib/agent/actions/geofencing/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/agent/actions/geofencing/index.js b/lib/agent/actions/geofencing/index.js index d0b461ada..0b84d09ba 100644 --- a/lib/agent/actions/geofencing/index.js +++ b/lib/agent/actions/geofencing/index.js @@ -72,7 +72,10 @@ exports.sync = function(id, geofences, cb) { }); function start_watcher(cb) { - notify_done(); + if (exports.watching && exports.watching.length > 0) { + notify_done(); + } + function notify_done() { var data = {