mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-14 02:24:15 +01:00
add NotificationService, cleanup
This commit is contained in:
parent
12f0789e9c
commit
576d005b32
17 changed files with 243 additions and 84 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using System.Collections.Concurrent;
|
||||
using Dalamud.Interface.Internal.Notifications;
|
||||
using System.Collections.Concurrent;
|
||||
using MareSynchronos.API.Routes;
|
||||
using MareSynchronos.FileCache;
|
||||
using MareSynchronos.Utils;
|
||||
|
|
@ -352,6 +353,7 @@ public partial class ApiController : IDisposable, IMareHubClient
|
|||
_connectionDto = null;
|
||||
_healthCheckTokenSource?.Cancel();
|
||||
ServerState = ServerState.Reconnecting;
|
||||
_mediator.Publish(new NotificationMessage("Connection lost", "Connection lost to " + _serverManager.CurrentServer!.ServerName, NotificationType.Error, 5000));
|
||||
Logger.Warn("Connection closed... Reconnecting");
|
||||
Logger.Warn(arg?.Message ?? string.Empty);
|
||||
Logger.Warn(arg?.StackTrace ?? string.Empty);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue