Should also be ported to v10.
This commit is contained in:
PhyxionNL
2022-03-23 17:05:12 +01:00
committed by Michael Latouche
parent cde05c1197
commit 538fb173c2

View File

@@ -799,8 +799,12 @@ namespace Umbraco.Cms.Web.Common.ModelsBuilder
{
if (disposing)
{
_watcher.EnableRaisingEvents = false;
_watcher.Dispose();
if (_watcher != null)
{
_watcher.EnableRaisingEvents = false;
_watcher.Dispose();
}
_locker.Dispose();
}