Author: jwilcox
Date: 2006-01-16 16:55:19 -0500 (Mon, 16 Jan 2006)
New Revision: 55658
Modified:
trunk/daap-sharp/ChangeLog
trunk/daap-sharp/src/Server.cs
trunk/daap-sharp/src/ServiceLocator.cs
Log:
2006-01-16 James Willcox <[EMAIL PROTECTED]>
* src/Server.cs: reset the EntryGroup when unregistering the service
* src/ServiceLocator.cs: fix a typo causing new services not to
show up.
Modified: trunk/daap-sharp/ChangeLog
===================================================================
--- trunk/daap-sharp/ChangeLog 2006-01-16 21:43:55 UTC (rev 55657)
+++ trunk/daap-sharp/ChangeLog 2006-01-16 21:55:19 UTC (rev 55658)
@@ -1,3 +1,9 @@
+2006-01-16 James Willcox <[EMAIL PROTECTED]>
+
+ * src/Server.cs: reset the EntryGroup when unregistering the service
+ * src/ServiceLocator.cs: fix a typo causing new services not to
+ show up.
+
2006-01-14 Aaron Bockover <[EMAIL PROTECTED]>
* src/Server.cs: Added public IsRunning property to expose server state
Modified: trunk/daap-sharp/src/Server.cs
===================================================================
--- trunk/daap-sharp/src/Server.cs 2006-01-16 21:43:55 UTC (rev 55657)
+++ trunk/daap-sharp/src/Server.cs 2006-01-16 21:55:19 UTC (rev 55658)
@@ -508,6 +508,7 @@
if (eg == null)
return;
+ eg.Reset ();
eg.Dispose ();
eg = null;
}
Modified: trunk/daap-sharp/src/ServiceLocator.cs
===================================================================
--- trunk/daap-sharp/src/ServiceLocator.cs 2006-01-16 21:43:55 UTC (rev
55657)
+++ trunk/daap-sharp/src/ServiceLocator.cs 2006-01-16 21:55:19 UTC (rev
55658)
@@ -177,7 +177,7 @@
private void OnServiceRemoved (object o, ServiceInfoArgs args) {
Service svc = (Service) services[args.Service.Name];
if (svc != null) {
- services.Remove (svc);
+ services.Remove (svc.Name);
if (Removed != null)
Removed (this, new ServiceArgs (svc));
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches