[banshee] UPnPService: Make it a IDelayedInitializeService
- From: Bertrand Lorentz <blorentz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] UPnPService: Make it a IDelayedInitializeService
- Date: Sat, 10 Mar 2012 17:40:03 +0000 (UTC)
commit d0f76373b4c631ca86c8139a900436f1c149d60c
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date: Sat Mar 10 17:51:51 2012 +0100
UPnPService: Make it a IDelayedInitializeService
We don't need to start looking for UPnP device immediately, we can wait
until we're completely started up.
.../Banshee.UPnPClient/UPnPService.cs | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/Extensions/Banshee.UPnPClient/Banshee.UPnPClient/UPnPService.cs b/src/Extensions/Banshee.UPnPClient/Banshee.UPnPClient/UPnPService.cs
index 6fffdd9..4a1debc 100644
--- a/src/Extensions/Banshee.UPnPClient/Banshee.UPnPClient/UPnPService.cs
+++ b/src/Extensions/Banshee.UPnPClient/Banshee.UPnPClient/UPnPService.cs
@@ -44,7 +44,7 @@ using Banshee.PlaybackController;
namespace Banshee.UPnPClient
{
- public class UPnPService : IExtensionService, IDisposable
+ public class UPnPService : IExtensionService, IDisposable, IDelayedInitializeService
{
private Mono.Upnp.Client client;
private UPnPContainerSource container;
@@ -53,6 +53,10 @@ namespace Banshee.UPnPClient
void IExtensionService.Initialize ()
{
+ }
+
+ public void DelayedInitialize ()
+ {
source_map = new Dictionary<string, UPnPServerSource> ();
container = new UPnPContainerSource ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]