Skip to content
This repository was archived by the owner on Aug 4, 2019. It is now read-only.

Commit c00cdc3

Browse files
committed
Restore more reasonable temporary polling interval
1 parent 1ceb832 commit c00cdc3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/BreakoutSDK/Breakout.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ void Breakout::setPollingInterval(uint32_t interval_seconds) {
7979
} else if (interval_seconds == 0) {
8080
polling_interval = 0;
8181
} else {
82-
LOG(L_WARN, "Interval %u seconds less than minimum of %u. Polling will be disabled.\r\n", interval_seconds,
82+
LOG(L_WARN, "Interval %u seconds less than minimum of %u but not 0. Using minimum polling interval.\r\n", interval_seconds,
8383
BREAKOUT_POLLING_INTERVAL_MINIMUM);
84-
polling_interval = 0;
84+
polling_interval = BREAKOUT_POLLING_INTERVAL_MINIMUM;
8585
}
8686

8787
if (polling_interval == 0) {

src/BreakoutSDK/Breakout.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636

3737
#define MAX_PENDING_COMMANDS 100
38-
#define BREAKOUT_POLLING_INTERVAL_MINIMUM 5
38+
#define BREAKOUT_POLLING_INTERVAL_MINIMUM 60 // Temporary minimum interval; expect this to be 10 minutes in the future.
3939
#define BREAKOUT_INIT_CONNECTION_TIMEOUT 60
4040
#define BREAKOUT_INIT_CONNECTION_RETRIES 2
4141
#define BREAKOUT_REINIT_CONNECTION_INTERVAL 600

0 commit comments

Comments
 (0)