diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-06-21 17:31:21 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-06-21 17:31:21 -0400 |
| commit | 95ac98d5d421b062b4f1467a988c10470427389d (patch) | |
| tree | bced8f1f2e05f04bbe02cda29e1f5a041b2fb65c /MediaBrowser.ServerApplication | |
| parent | 8bb10cb12f206aadb282d75cfb68dfca457fdc03 (diff) | |
update menus
Diffstat (limited to 'MediaBrowser.ServerApplication')
| -rw-r--r-- | MediaBrowser.ServerApplication/EntryPoints/ResourceEntryPoint.cs | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/MediaBrowser.ServerApplication/EntryPoints/ResourceEntryPoint.cs b/MediaBrowser.ServerApplication/EntryPoints/ResourceEntryPoint.cs deleted file mode 100644 index e7a33d8644..0000000000 --- a/MediaBrowser.ServerApplication/EntryPoints/ResourceEntryPoint.cs +++ /dev/null @@ -1,38 +0,0 @@ -using MediaBrowser.Controller.Plugins; -using System; -using System.Threading; - -namespace MediaBrowser.ServerApplication.EntryPoints -{ - public class ResourceEntryPoint : IServerEntryPoint - { - private Timer _timer; - - public void Run() - { - _timer = new Timer(TimerCallback, null, TimeSpan.FromMinutes(1), TimeSpan.FromMinutes(30)); - } - - private void TimerCallback(object state) - { - try - { - // Bad practice, i know. But we keep a lot in memory, unfortunately. - GC.Collect(2, GCCollectionMode.Forced, true); - GC.Collect(2, GCCollectionMode.Forced, true); - } - catch - { - } - } - - public void Dispose() - { - if (_timer != null) - { - _timer.Dispose(); - _timer = null; - } - } - } -} |
