Skip to content

Commit

Permalink
log when a message was not received
Browse files Browse the repository at this point in the history
  • Loading branch information
gluap committed Jan 9, 2024
1 parent 322615c commit 62bdaf1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyduofern/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
__version__ = "0.36.0"
__version__ = "0.36.1"

__all__ = ['DuofernException', 'DuofernStick', 'DuofernStickAsync', 'duoACK']

Expand Down
1 change: 1 addition & 0 deletions pyduofern/duofern_stick.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,7 @@ def handle_resends(self):
for k in self.unacknowledged.keys():
if self.unacknowledged[k].retries == 0:
done.add(k)
logger.info(f"{self.unacknowledged[k]} was never acknowledged, gave up after 5 retries")
elif self.unacknowledged[k].next < t:
self.unacknowledged[k].next = t + datetime.timedelta(seconds=random.uniform(*RESEND_SECONDS))
self.unacknowledged[k].retries -= 1
Expand Down

0 comments on commit 62bdaf1

Please sign in to comment.