Commit 3026c2c
committed
fix(envd): grab subSignal before checking conditions in receiveWhenReady
Avoids a race where a subscriber added between HasSubscribers()
and fetching subSignal could leave the fan-out parked on a fresh
unclosed signal channel.1 parent c55adcc commit 3026c2c
1 file changed
Lines changed: 3 additions & 8 deletions
Lines changed: 3 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
| 118 | + | |
| 119 | + | |
125 | 120 | | |
126 | 121 | | |
127 | 122 | | |
128 | 123 | | |
129 | | - | |
| 124 | + | |
130 | 125 | | |
131 | 126 | | |
132 | 127 | | |
| |||
0 commit comments