Skip to content

Commit

Permalink
Fix possible rare race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
lilith committed Nov 4, 2022
1 parent 8f7e340 commit 6766a25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/ImageResizer.Plugins.HybridCache/HybridCachePlugin.cs
Expand Up @@ -141,8 +141,8 @@ public IPlugin Install(Config c)

//OK, we have our cacheOptions;
this._cache = CreateHybridCacheFromOptions(_cacheOptions, _logger);
c.Plugins.add_plugin(this);
AsyncUtil.RunSync(() => this._cache.StartAsync(CancellationToken.None));
c.Plugins.add_plugin(this);
return this;
}

Expand Down Expand Up @@ -320,4 +320,4 @@ private DriveInfo GetCacheDrive()


}
}
}

0 comments on commit 6766a25

Please sign in to comment.