Skip to content

Commit 726d84e

Browse files
new dist
1 parent 11b09f9 commit 726d84e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

dist/src/monitors/monitorROAS.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,14 @@ var MonitorROAS = exports["default"] = /*#__PURE__*/function (_Monitor) {
5656
_this = _callSuper(this, MonitorROAS, [name, channel, params, env, input]);
5757
_defineProperty(_assertThisInitialized(_this), "_enablePeriodicCheck", function (condition, checkFunction, seconds) {
5858
if (condition) {
59+
if (!global.EXTERNAL_ROA_EXPIRATION_TEST) {
60+
setTimeout(function () {
61+
return _this._skipIfStaleVrps(checkFunction);
62+
}, 30 * 1000); // Initial run
63+
}
5964
setInterval(function () {
60-
_this._skipIfStaleVrps(checkFunction);
61-
}, global.EXTERNAL_ROA_EXPIRATION_TEST || seconds * 1000);
65+
return _this._skipIfStaleVrps(checkFunction);
66+
}, global.EXTERNAL_ROA_EXPIRATION_TEST || seconds * 1000); // Periodic run
6267
}
6368
});
6469
_defineProperty(_assertThisInitialized(_this), "_skipIfStaleVrps", function (callback) {

0 commit comments

Comments
 (0)