diff options
| author | Luke <luke.pulverenti@gmail.com> | 2015-07-10 22:30:36 -0400 |
|---|---|---|
| committer | Luke <luke.pulverenti@gmail.com> | 2015-07-10 22:30:36 -0400 |
| commit | 63f9abd4d65b7b7fd43f7ec7faf510075285ed69 (patch) | |
| tree | 9cba4db7741db461cd7995d39d30d70483f7ae6d /MediaBrowser.ServerApplication/EntryPoints/ResourceEntryPoint.cs | |
| parent | ffe60d453d2610db290bff0a3319dbe7c0ceba04 (diff) | |
| parent | fe7fd7cd266be0fe8c0cc2be095cc0b267931ea9 (diff) | |
Merge pull request #1127 from MediaBrowser/dev
3.0.5641.5
Diffstat (limited to 'MediaBrowser.ServerApplication/EntryPoints/ResourceEntryPoint.cs')
| -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 e7a33d864..000000000 --- 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; - } - } - } -} |
