diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Application.cs | 6 | ||||
| -rw-r--r-- | src/slskd/Program.cs | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs index e0570ef6..7f1b4be0 100644 --- a/src/slskd/Application.cs +++ b/src/slskd/Application.cs @@ -88,7 +88,7 @@ namespace slskd IManagedState<State> state, ISoulseekClient soulseekClient, FileService fileService, - IConnectionWatchdog connectionWatchdog, + ConnectionWatchdog connectionWatchdog, ITransferService transferService, IBrowseTracker browseTracker, IRoomTracker roomTracker, @@ -213,7 +213,7 @@ namespace slskd private FileService Files { get; } private IRoomService RoomService { get; set; } private IBrowseTracker BrowseTracker { get; set; } - private IConnectionWatchdog ConnectionWatchdog { get; } + private ConnectionWatchdog ConnectionWatchdog { get; } private IMessagingService Messaging { get; set; } private ILogger Log { get; set; } = Serilog.Log.ForContext<Application>(); private ConcurrentDictionary<string, ILogger> Loggers { get; } = new ConcurrentDictionary<string, ILogger>(); @@ -859,7 +859,7 @@ namespace slskd else { Log.Error("Disconnected from the Soulseek server: {Message}", args.Exception?.Message ?? args.Message); - ConnectionWatchdog.Restart(); + ConnectionWatchdog.Start(); } } diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs index dd85bc21..89230e2a 100644 --- a/src/slskd/Program.cs +++ b/src/slskd/Program.cs @@ -592,7 +592,7 @@ namespace slskd services.AddHostedService(p => p.GetRequiredService<IApplication>()); services.AddSingleton<IWaiter, Waiter>(); - services.AddSingleton<IConnectionWatchdog, ConnectionWatchdog>(); + services.AddSingleton<ConnectionWatchdog, ConnectionWatchdog>(); if (OptionsAtStartup.Flags.Volatile) { |
