File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -209,7 +209,8 @@ private async Task InitializeServicesAsync(CancellationToken cancellationToken =
209
209
}
210
210
211
211
// Initialize file sync.
212
- var syncSessionCts = new CancellationTokenSource ( TimeSpan . FromSeconds ( 10 ) ) ;
212
+ using var syncSessionCts = CancellationTokenSource . CreateLinkedTokenSource ( cancellationToken ) ;
213
+ syncSessionCts . CancelAfter ( TimeSpan . FromSeconds ( 10 ) ) ;
213
214
var syncSessionController = _services . GetRequiredService < ISyncSessionController > ( ) ;
214
215
try
215
216
{
Original file line number Diff line number Diff line change @@ -13,9 +13,8 @@ namespace Coder.Desktop.App.Services;
13
13
public interface ISettingsManager < T > where T : ISettings < T > , new ( )
14
14
{
15
15
/// <summary>
16
- /// Reads the settings from the file system.
17
- /// Always returns the latest settings, even if they were modified by another instance of the app.
18
- /// Returned object is always a fresh instance, so it can be modified without affecting the stored settings.
16
+ /// Reads the settings from the file system or returns from cache if available.
17
+ /// Returned object is always a cloned instance, so it can be modified without affecting the stored settings.
19
18
/// </summary>
20
19
/// <param name="ct"></param>
21
20
/// <returns></returns>
You can’t perform that action at this time.
0 commit comments