Commit f1571ef
fix(hooks): prevent panic from loop var capture
Fix panic from accessing hooks[i] in async execution after loop.
Use captured parameter h instead.
Fixes: #418
Co-authored-by: hemang1404 <hemangsharrma@gmail.com>
Signed-off-by: ishaanxgupta <ishaankone@gmail.com>1 parent 40f09f2 commit f1571ef
2 files changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
56 | 59 | | |
57 | 60 | | |
58 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
777 | 777 | | |
778 | 778 | | |
779 | 779 | | |
780 | | - | |
781 | | - | |
| 780 | + | |
| 781 | + | |
782 | 782 | | |
783 | 783 | | |
784 | 784 | | |
| |||
0 commit comments