]> git.codecow.com Git - libnemo.git/commitdiff
Device connection rate limits itself to twice per second so align polling with that.
authorChris Duncan <chris@zoso.dev>
Sat, 20 Sep 2025 06:38:43 +0000 (23:38 -0700)
committerChris Duncan <chris@zoso.dev>
Sat, 20 Sep 2025 06:38:43 +0000 (23:38 -0700)
src/lib/ledger.ts

index 6f6a3eca49dedc217458a12a08c219c3d65f1f94..7c49045b324043c52174c9d9d98458bf260a1158 100644 (file)
@@ -487,7 +487,7 @@ export class Ledger {
                        console.warn('Error polling Ledger device')
                        this.#status = 'DISCONNECTED'
                } finally {
-                       setTimeout(() => this.#poll(), 200)
+                       setTimeout(() => this.#poll(), 500)
                }
        }