Skip to content

Commit 6b4c330

Browse files
committed
add sensible minimums for pota polling interval
1 parent 79d2a39 commit 6b4c330

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pota/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = class POTASpots extends events.EventEmitter {
88
//constructor
99
constructor(opts = {}) {
1010
super();
11-
this.potapollinterval = opts.potapollinterval || 120; // Default to 120 seconds
11+
this.potapollinterval = Math.max(30, (opts.potapollinterval || 120)); // Default to 120 seconds, 30 seconds minmum
1212
this.potaspotcache = [];
1313
}
1414

0 commit comments

Comments
 (0)