Commit 35b2fda
committed
fix(ui/daemon-client): prevent duplicate store subscribers on reconnect
Unsubscribe previous settings-change store subscriber before creating a new one in startNotifyDaemonOnParamsChange.
This avoids accumulating duplicate subscribers across daemon reconnects and prevents repeated ConnectSettings notifications.1 parent 7170756 commit 35b2fda
1 file changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
702 | 702 | | |
703 | 703 | | |
704 | 704 | | |
705 | | - | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
706 | 715 | | |
707 | 716 | | |
708 | 717 | | |
709 | | - | |
| 718 | + | |
710 | 719 | | |
711 | 720 | | |
712 | 721 | | |
| |||
0 commit comments