Commit e21aa3d
fix: Fix race condition in value change listener registration
Move add_flag_value_change_listener inside the lock block so the old
listener is removed before the new one is registered, preventing
brief duplicate firing when re-registering with the same listener ID.
Co-Authored-By: mkeeler@launchdarkly.com <keelerm84@gmail.com>1 parent 095913a commit e21aa3d
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
68 | 66 | | |
69 | 67 | | |
70 | 68 | | |
71 | 69 | | |
| 70 | + | |
72 | 71 | | |
73 | 72 | | |
74 | 73 | | |
| |||
0 commit comments