Commit a294012
committed
fix(authentication): cancel cooldown timer when starting a new one
- Add _cooldownTimer field to store the timer reference
- Cancel existing timer before starting a new one to prevent memory leaks
- Update timer initialization to use the new _cooldownTimer field
- Ensure timer is cancelled when the bloc is closed1 parent bbcc0ed commit a294012
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
100 | | - | |
| 101 | + | |
| 102 | + | |
101 | 103 | | |
102 | 104 | | |
103 | 105 | | |
| |||
213 | 215 | | |
214 | 216 | | |
215 | 217 | | |
| 218 | + | |
216 | 219 | | |
217 | 220 | | |
218 | 221 | | |
0 commit comments