Commit 901cda3
Łukasz Kostka
Fix race coondition
When SIGINT/SIGTERM is received before calling wg.Add(1), wg.Wait()
causes a race coondition.1 parent aa756bb commit 901cda3
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
145 | 146 | | |
146 | 147 | | |
147 | 148 | | |
| |||
175 | 176 | | |
176 | 177 | | |
177 | 178 | | |
178 | | - | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| |||
0 commit comments