~raof/banshee/banshee-gapless-work

« back to all changes in this revision

Viewing changes to src/Extensions/Banshee.Torrent/Banshee.Torrent/TorrentService.cs

  • Committer: Christopher James Halse Rogers
  • Date: 2009-04-07 20:40:54 UTC
  • mfrom: (4448.1.58)
  • Revision ID: raof@ubuntu.com-20090407204054-6yv6786jb6c0ycka
Merge in from trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
        private Bus bus;
51
51
        private IEngine engine;
52
52
        private ITorrentService service;
53
 
        private IEngineSettings settings;
 
53
        /*private IEngineSettings settings;
54
54
        
55
55
        public int MaxDownloadSpeed {
56
56
            get { return settings.GetGlobalMaxDownloadSpeed (); }
60
60
        public int MaxUploadSpeed {
61
61
            get { return settings.GetGlobalMaxUploadSpeed (); }
62
62
            set { settings.SetGlobalMaxUploadSpeed (value); }
63
 
        }
 
63
        }*/
64
64
 
65
65
        public string ServiceName {
66
66
            get { return "TorrentService"; }
88
88
        public void Dispose ()
89
89
        {
90
90
            if (service != null) {
91
 
                service.DestroyEngine (EngineName);
 
91
                try {
 
92
                    service.DestroyEngine (EngineName);
 
93
                } catch {}
92
94
                service = null;
93
95
            }
94
96
        }
100
102
        public void DelayedInitialize ()
101
103
        {
102
104
            bus = Bus.Session;
103
 
                        
 
105
 
104
106
            try {
105
107
                // Get the service and call a method on it to ensure that it is
106
108
                // running and able to answer queries.