diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-10-31 18:42:29 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-10-31 18:42:29 -0500 |
| commit | 0e50c8fa4c35118f334b2252ae692debb9b11400 (patch) | |
| tree | 663f05e79a4d4e152b1c22b56a78d584c700d5b5 /src | |
| parent | 73373e2ce4b0939bdc621d60d434d5e0954586ed (diff) | |
| download | slskd-0e50c8fa4c35118f334b2252ae692debb9b11400.tar.gz | |
swap .Last() for [^1]
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Transfers/Downloads/DownloadService.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slskd/Transfers/Downloads/DownloadService.cs b/src/slskd/Transfers/Downloads/DownloadService.cs index c211c628..02613756 100644 --- a/src/slskd/Transfers/Downloads/DownloadService.cs +++ b/src/slskd/Transfers/Downloads/DownloadService.cs @@ -1062,7 +1062,7 @@ namespace slskd.Transfers.Downloads // Retry.Do() wraps failures in an AggregateException; use the most recent so that the state reflects what happened if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count > 0) { - exception = aggregate.InnerExceptions[^1]; + exception = aggregate.InnerExceptions.Last(); } // Soulseek.NET will include the filename and username in some messages; this is useful for many things but not tracking |
