Commit 533a806
authored
fix: Ban/Mute ObjectDisposedException and collection modification crashes in UI disposal (#2787)
- Use DelayedDelete() in BanMuteBox event handlers instead of direct Dispose()
- Canvas: Fix ProcessDelayedDeletes() to iterate over a copy of the disposal queue, preventing "Collection was modified" exceptions when nested DelayedDelete() calls occur during disposal
- Add error handling to catch and log disposal exceptions instead of crashing the entire client
- User Ban working and tested1 parent 7e68596 commit 533a806
File tree
2 files changed
+30
-9
lines changed- Intersect.Client.Core/Interface/Game/Admin
- Intersect.Client.Framework/Gwen/Control
2 files changed
+30
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
| 265 | + | |
| 266 | + | |
265 | 267 | | |
266 | 268 | | |
267 | | - | |
| 269 | + | |
268 | 270 | | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
269 | 277 | | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
| 278 | + | |
| 279 | + | |
274 | 280 | | |
| 281 | + | |
275 | 282 | | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
276 | 288 | | |
277 | 289 | | |
278 | | - | |
279 | | - | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
280 | 301 | | |
281 | 302 | | |
282 | 303 | | |
| |||
0 commit comments