Commit e7b1484
committed
Fix race condition and potential segfault in MythDownloadManager.
Put a lock around the creation of the MythDownloadManager to make
sure we don't get two created by a potential race condition.
Put a lock around access to the QNetworkDiskCache when called
via MythDownloadManager::GetLastModified().
Fixes #9231 using ideas from Jonatan from comhem.se, but most of
the patch (and potential issues) are mine.1 parent 3049eb7 commit e7b1484
1 file changed
+25
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
134 | 135 | | |
135 | 136 | | |
136 | 137 | | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
143 | 142 | | |
144 | | - | |
145 | | - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
146 | 147 | | |
147 | | - | |
148 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
149 | 152 | | |
150 | | - | |
151 | | - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
152 | 162 | | |
153 | 163 | | |
154 | 164 | | |
| |||
1039 | 1049 | | |
1040 | 1050 | | |
1041 | 1051 | | |
| 1052 | + | |
| 1053 | + | |
1042 | 1054 | | |
| 1055 | + | |
1043 | 1056 | | |
1044 | 1057 | | |
1045 | 1058 | | |
| |||
0 commit comments