aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common/Threading/PeriodicTimer.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-01-28 22:42:03 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-01-28 22:42:03 -0500
commit3268de0edfaceeee41724ed05af26c4b0d2add1d (patch)
treed38864fc0414b9e2b55db953fb1fcb55c68e6370 /MediaBrowser.Common/Threading/PeriodicTimer.cs
parent3510ef3d2beb810c87f8f3d52f95b95110e574d0 (diff)
add null check to PeriodicTimer
Diffstat (limited to 'MediaBrowser.Common/Threading/PeriodicTimer.cs')
-rw-r--r--MediaBrowser.Common/Threading/PeriodicTimer.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/MediaBrowser.Common/Threading/PeriodicTimer.cs b/MediaBrowser.Common/Threading/PeriodicTimer.cs
index cb562a80d..75ccada4e 100644
--- a/MediaBrowser.Common/Threading/PeriodicTimer.cs
+++ b/MediaBrowser.Common/Threading/PeriodicTimer.cs
@@ -14,6 +14,11 @@ namespace MediaBrowser.Common.Threading
public PeriodicTimer(Action<object> callback, object state, TimeSpan dueTime, TimeSpan period)
{
+ if (callback == null)
+ {
+ throw new ArgumentNullException("callback");
+ }
+
Callback = callback;
_period = period;
_state = state;