Commit c641f3f
committed
Fix infinite save retry loop and method check bugs
- Add retry limit (3 attempts) to saveFileContents() to prevent infinite
retry loop when file writes fail. Shows error message after retries
exhausted instead of silently retrying forever. This fixes the
'reloading every 1-2 seconds' behavior reported in #460.
- Clear save retry timeout on disconnect to prevent retries from
continuing after switching boards or disconnecting.
- Fix _isMethodAllowed() missing parentheses on toUpperCase call
(was passing function reference instead of calling it).
- Add missing await on _isMethodAllowed() call in _fetch() so the
method permission check actually evaluates the result.
- Fix missing closing quote in save failure message template literal.
Fixes #4601 parent 6be9157 commit c641f3f
2 files changed
Lines changed: 19 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
| 465 | + | |
| 466 | + | |
465 | 467 | | |
466 | 468 | | |
467 | 469 | | |
| |||
482 | 484 | | |
483 | 485 | | |
484 | 486 | | |
| 487 | + | |
485 | 488 | | |
486 | | - | |
| 489 | + | |
487 | 490 | | |
488 | 491 | | |
489 | 492 | | |
490 | 493 | | |
491 | 494 | | |
492 | 495 | | |
493 | 496 | | |
494 | | - | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
495 | 505 | | |
496 | 506 | | |
497 | 507 | | |
| |||
535 | 545 | | |
536 | 546 | | |
537 | 547 | | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
538 | 553 | | |
539 | 554 | | |
540 | 555 | | |
| |||
0 commit comments