This repository was archived by the owner on May 1, 2024. It is now read-only.
Commit 27dcf50
The validationTokenSource should be set to null right after ValidateAsync is called. Otherwise, if the token is canceled (token.IsCancellationRequested is true) and therefore validationTokenSource is not set to null, next call to ResetValidationTokenSource will crash at line validationTokenSource?.Cancel() because validationTokenSource object is already disposed (see the using statement that creates the token). (#1694)
Co-authored-by: Kyle Tran <[email protected]>
Co-authored-by: Gerald Versluis <[email protected]>1 parent 5c2d689 commit 27dcf50
File tree
1 file changed
+1
-1
lines changed- src/CommunityToolkit/Xamarin.CommunityToolkit/Behaviors/Validators
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
| 282 | + | |
282 | 283 | | |
283 | 284 | | |
284 | 285 | | |
285 | 286 | | |
286 | | - | |
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
| |||
0 commit comments