From bf461bd5a995465e6642e295aecbf919c4dd192b Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Wed, 3 May 2023 22:29:46 -0400 Subject: [PATCH] Fixed typo in MySQL error handling --- libStorage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libStorage.js b/libStorage.js index 4c9a954..c0f4bd1 100644 --- a/libStorage.js +++ b/libStorage.js @@ -55,7 +55,7 @@ function runSQL(sqlQuery, connection, callback = (err, rows) => { return callback(err, undefined); } log.WARN(`Database connection is unavailable, waiting ${ retryTimeout / 1000 } seconds...`); - retry += 1 + _retry += 1 // Wait for the retry timeout before trying the query again setTimeout(runSQL(sqlQuery, connection, callback, _retry)); }