about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-05-15 19:45:24 +0200
committerRory& <root@rory.gay>2025-05-15 19:45:32 +0200
commite82059372847bb719a40baeab37dee4d8bbf5df4 (patch)
treeb66251e643d6c5823da9524660cdd318410c8031
parentUpdate ArcaneLibs (diff)
downloadLibMatrix-e82059372847bb719a40baeab37dee4d8bbf5df4.tar.xz
Throw if sync helper gets M_UNKNOWN_TOKEN
-rw-r--r--LibMatrix/Helpers/SyncHelper.cs1
1 files changed, 1 insertions, 0 deletions
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;