mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-23 23:20:51 +01:00
Remove md5 lock and just create a new instance everytime
This commit is contained in:
parent
aae259d2cd
commit
2c56e75ca5
1 changed files with 2 additions and 3 deletions
|
|
@ -154,12 +154,11 @@ namespace MediaBrowser.Controller
|
|||
DirectoryWatchers.Start();
|
||||
}
|
||||
|
||||
private static MD5CryptoServiceProvider md5Provider = new MD5CryptoServiceProvider();
|
||||
public static Guid GetMD5(string str)
|
||||
{
|
||||
lock (md5Provider)
|
||||
using (var provider = new MD5CryptoServiceProvider())
|
||||
{
|
||||
return new Guid(md5Provider.ComputeHash(Encoding.Unicode.GetBytes(str)));
|
||||
return new Guid(provider.ComputeHash(Encoding.Unicode.GetBytes(str)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue