From e82059372847bb719a40baeab37dee4d8bbf5df4 Mon Sep 17 00:00:00 2001 From: Rory& Date: Thu, 15 May 2025 19:45:24 +0200 Subject: Throw if sync helper gets M_UNKNOWN_TOKEN --- LibMatrix/Helpers/SyncHelper.cs | 1 + 1 file changed, 1 insertion(+) (limited to 'LibMatrix/Helpers/SyncHelper.cs') diff --git a/LibMatrix/Helpers/SyncHelper.cs b/LibMatrix/Helpers/SyncHelper.cs index 6488464..75e90a1 100644 --- a/LibMatrix/Helpers/SyncHelper.cs +++ b/LibMatrix/Helpers/SyncHelper.cs @@ -209,6 +209,7 @@ public class SyncHelper(AuthenticatedHomeserverGeneric homeserver, ILogger? logg Console.WriteLine(e); logger?.LogError(e, "Failed to sync!\n{}", e.ToString()); await Task.WhenAll(ExceptionHandlers.Select(x => x.Invoke(e)).ToList()); + if (e is MatrixException { ErrorCode: MatrixException.ErrorCodes.M_UNKNOWN_TOKEN }) throw; } return null; -- cgit 1.5.1