aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/IO/FileRefresher.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-10-17 12:48:23 -0400
committerGitHub <noreply@github.com>2016-10-17 12:48:23 -0400
commit0fd99d2d08515341fbcd31daa011090bb073cfcd (patch)
treeca299bed13c4a241482c5518ea0bc76f58b5326d /MediaBrowser.Server.Implementations/IO/FileRefresher.cs
parentb0147c32f9122c6ce695d2919176ed8b50b94fda (diff)
parentb0a75f086e9d48b840ff1594997f68282920f491 (diff)
Merge pull request #2242 from MediaBrowser/dev
Dev
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);