penguineer / Rabbarkable

RabbitMQ (AMQP) connector for the reMarkable API
https://hub.docker.com/r/mrtux/rabbarkable
MIT License
5 stars 0 forks source link

:bug: Multiple user-tokens are requested on token renewal #5

Closed penguineer closed 2 years ago

penguineer commented 2 years ago

When the user-token is renewed multiple tokens are requested due to "race conditions" (i.e. whoever grabs the token while it is still in the process of renewal also requests a new one).

There needs to be some synchronization around this asynchronous process.

This does not keep the MVP from working, but needs to be resolve before a more stable release.

penguineer commented 2 years ago

Fixed in #14