From fb9319368a1aaea6656d4d7d66de3212dc79b2ce Mon Sep 17 00:00:00 2001 From: Licho Date: Sun, 26 Jan 2025 09:46:12 +0100 Subject: [PATCH] go back to previous unitsync engine + try to not crash server when unitsync breaks --- AutoRegistrator/Unitsyncer.cs | 2 ++ Shared/PlasmaShared/GlobalConst.cs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/AutoRegistrator/Unitsyncer.cs b/AutoRegistrator/Unitsyncer.cs index c498223bca..0a9c81d100 100644 --- a/AutoRegistrator/Unitsyncer.cs +++ b/AutoRegistrator/Unitsyncer.cs @@ -3,6 +3,7 @@ using System.Diagnostics; using System.IO; using System.Linq; +using System.Runtime.ExceptionServices; using MonoTorrent.Common; using PlasmaShared; using ZkData; @@ -87,6 +88,7 @@ public List Scan() } + [HandleProcessCorruptedStateExceptions] private static ResourceInfo Register(UnitSync unitsync, ResourceInfo resource) { Trace.TraceInformation("UnitSyncer: registering {0}", resource.Name); diff --git a/Shared/PlasmaShared/GlobalConst.cs b/Shared/PlasmaShared/GlobalConst.cs index 9f40014924..ec54298590 100644 --- a/Shared/PlasmaShared/GlobalConst.cs +++ b/Shared/PlasmaShared/GlobalConst.cs @@ -266,7 +266,7 @@ public static void OverrideContentServiceClient(IContentServiceClient client) } - public static string UnitSyncEngine = "105.1.1-1485-g78f9a2c"; + public static string UnitSyncEngine = "unitsync"; public static int SteamContributionJarID = 2; public static Dictionary DlcToKudos = new Dictionary() { { 842950, 100 }, { 842951, 250 }, { 842952, 500 } };