Commit 16fd93e
fix(grpc): Fix data race on stopMonitor field in stream wrapper
Initialize stopMonitor to a no-op function before calling context.AfterFunc
to prevent a data race where the AfterFunc callback reads stopMonitor
concurrently with the assignment if the context is already done.
Co-Authored-By: Claude Sonnet 4.5 <claude-sonnet-4.5@cursor.sh>1 parent 14ac33f commit 16fd93e
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
117 | 121 | | |
118 | 122 | | |
119 | 123 | | |
| |||
0 commit comments