mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 05:47:14 -04:00
Prevent recursive loop
This commit is contained in:
parent
0c05b03189
commit
6f7095ce5b
@ -24,6 +24,8 @@ namespace MediaBrowser.Controller.IO
|
||||
IntPtr handle = FindFirstFile(path, out data);
|
||||
|
||||
if (handle == INVALID_HANDLE_VALUE && !Path.HasExtension(path))
|
||||
{
|
||||
if (!path.EndsWith("*"))
|
||||
{
|
||||
Logger.LogInfo("Handle came back invalid for {0}. Since this is a directory we'll try appending \\*.", path);
|
||||
|
||||
@ -31,6 +33,7 @@ namespace MediaBrowser.Controller.IO
|
||||
|
||||
handle = FindFirstFile(Path.Combine(path, "*"), out data);
|
||||
}
|
||||
}
|
||||
|
||||
if (handle == IntPtr.Zero)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user