diff --git a/Dalamud/Service{T}.cs b/Dalamud/Service{T}.cs index 0e7d75369..a1a56a9f0 100644 --- a/Dalamud/Service{T}.cs +++ b/Dalamud/Service{T}.cs @@ -154,6 +154,10 @@ internal static class Service where T : IServiceType if (attr == null) continue; + // Scoped plugin services lifetime is tied to their scopes. They go away when LocalPlugin goes away. + if (serviceType.GetServiceKind() == ServiceManager.ServiceKind.ScopedService) + continue; + ServiceManager.Log.Verbose("PluginManager MUST depend on {Type}", serviceType.FullName!); res.Add(serviceType); }