Commit f060afc
fix(screenshot): prevent multiple simultaneous screenshot requests
- Updated the screenshot service to ignore new requests if a screenshot is already in progress, ensuring that only one instance of the screenshot process runs at a time.
- Added debug logging to indicate when a screenshot is already in progress and when a new screenshot instance is started.
This change improves the user experience by preventing overlapping screenshot operations.
bug: https://pms.uniontech.com/bug-view-357037.html1 parent aa699ce commit f060afc
1 file changed
Lines changed: 14 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
167 | | - | |
168 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
169 | 169 | | |
| 170 | + | |
| 171 | + | |
170 | 172 | | |
| 173 | + | |
| 174 | + | |
171 | 175 | | |
172 | 176 | | |
173 | 177 | | |
| |||
182 | 186 | | |
183 | 187 | | |
184 | 188 | | |
185 | | - | |
186 | | - | |
187 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
188 | 192 | | |
| 193 | + | |
| 194 | + | |
189 | 195 | | |
| 196 | + | |
| 197 | + | |
190 | 198 | | |
191 | 199 | | |
192 | 200 | | |
| |||
0 commit comments