Commit 4dac465
committed
Fix crash after consecutive failed downloads
A segmentation fault was caused by an uninitialized mutex if an IO error
occurred on two consecutive downloads. The mutex is now explicitly
initialized on all code paths.
Also, filled out the rest of the struct just to be safe for the future.1 parent 17f2faa commit 4dac465
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
166 | 170 | | |
167 | 171 | | |
168 | 172 | | |
169 | | - | |
170 | 173 | | |
| 174 | + | |
171 | 175 | | |
172 | 176 | | |
173 | 177 | | |
| |||
0 commit comments