Example #1
0
        public override void Dispose()
        {
            Flush();

            PurgeTemporaryPlaylists();
            PurgeTracks();

            if (dap_info_bar != null)
            {
                var info_bar = dap_info_bar;
                ThreadAssist.ProxyToMain(info_bar.Destroy);
                dap_info_bar = null;
            }

            Properties.Remove("Nereid.SourceContents.FooterWidget");

            /*Properties.Remove ("Nereid.SourceContents");
             * dap_properties_display.Destroy ();
             * dap_properties_display = null;*/

            if (sync != null)
            {
                sync.Dispose();
            }
        }
Example #2
0
        public override void Dispose()
        {
            lock (InternalLock) {
                if (load_thread != null)
                {
                    if (load_thread.IsAlive)
                    {
                        load_thread.Abort();
                    }
                    load_thread = null;
                }
            }

            Flush();

            if (dap_info_bar != null)
            {
                var info_bar = dap_info_bar;
                ThreadAssist.ProxyToMain(info_bar.Destroy);
                dap_info_bar = null;
            }

            Properties.Remove("Nereid.SourceContents.FooterWidget");

            /*Properties.Remove ("Nereid.SourceContents");
             * dap_properties_display.Destroy ();
             * dap_properties_display = null;*/

            if (sync != null)
            {
                sync.Dispose();
            }
        }