Skip to content

Commit 1cea261

Browse files
authored
Properly initialize member variable
The lastRetryAfter was not initialized, leading to a possible false-negative about retrying too soon (first if statement in InfluxDBClient::flushBuffer() )
1 parent 17a9385 commit 1cea261

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/InfluxDbClient.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ class InfluxDBClient {
243243
BearSSL::X509List *_cert = nullptr;
244244
#endif
245245
// Store retry timeout suggested by server after last request
246-
int _lastRetryAfter;
246+
int _lastRetryAfter = 0;
247247
// Sends POST request with data in body
248248
int postData(const char *data);
249249
// Prepares batch from data in buffer`

0 commit comments

Comments
 (0)