aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/IO/FileRefresher.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-10-20 15:27:40 -0400
committerGitHub <noreply@github.com>2016-10-20 15:27:40 -0400
commit367e17826eb49d855d9ae30462072c5e295f5b33 (patch)
tree39e06e3c38bbd4933ed3aeb100f8f2a22a25f211 /MediaBrowser.Server.Implementations/IO/FileRefresher.cs
parentd2d49b6b760ad3d74712c0839c66296476ab858e (diff)
parent3c1114228ba3b6a19cb73fa7f9aaa4e3ce3cab80 (diff)
Merge pull request #2250 from MediaBrowser/beta
Beta
Diffstat (limited to 'MediaBrowser.Server.Implementations/IO/FileRefresher.cs')
-rw-r--r--MediaBrowser.Server.Implementations/IO/FileRefresher.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Implementations/IO/FileRefresher.cs b/MediaBrowser.Server.Implementations/IO/FileRefresher.cs
index 3df7a03d4..c2c776c2b 100644
--- a/MediaBrowser.Server.Implementations/IO/FileRefresher.cs
+++ b/MediaBrowser.Server.Implementations/IO/FileRefresher.cs
@@ -45,6 +45,11 @@ namespace MediaBrowser.Server.Implementations.IO
private void AddAffectedPath(string path)
{
+ if (string.IsNullOrWhiteSpace(path))
+ {
+ throw new ArgumentNullException("path");
+ }
+
if (!_affectedPaths.Contains(path, StringComparer.Ordinal))
{
_affectedPaths.Add(path);
@@ -53,6 +58,11 @@ namespace MediaBrowser.Server.Implementations.IO
public void AddPath(string path)
{
+ if (string.IsNullOrWhiteSpace(path))
+ {
+ throw new ArgumentNullException("path");
+ }
+
lock (_timerLock)
{
AddAffectedPath(path);