From 56510413f939d631d5c2f86ff9b825768a42e171 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 6 Feb 2015 12:27:55 +0000 Subject: [PATCH 1/2] Fixed issue where with multiple devices on the network you would sometimes only be able to browse/resolve a few of them --- .../Mono.Zeroconf.Providers.Bonjour/BrowseService.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Mono.Zeroconf.Providers.Bonjour/Mono.Zeroconf.Providers.Bonjour/BrowseService.cs b/src/Mono.Zeroconf.Providers.Bonjour/Mono.Zeroconf.Providers.Bonjour/BrowseService.cs index 1eca52e..74c6cbe 100644 --- a/src/Mono.Zeroconf.Providers.Bonjour/Mono.Zeroconf.Providers.Bonjour/BrowseService.cs +++ b/src/Mono.Zeroconf.Providers.Bonjour/Mono.Zeroconf.Providers.Bonjour/BrowseService.cs @@ -58,11 +58,17 @@ private void SetupCallbacks() { resolve_reply_handler = new Native.DNSServiceResolveReply(OnResolveReply); query_record_reply_handler = new Native.DNSServiceQueryRecordReply(OnQueryRecordReply); + resolveAction = new Action(Resolve); } + private Action resolveAction; public void Resolve() { - Resolve(false); + // If people call this in a ServiceAdded eventhandler (which they genreally do) + // We need to invoke onto another thread otherwise we block processing any more results. + + resolveAction.BeginInvoke(false, null, null); + } public void Resolve(bool requery) From 4859fe5dd33d955762ae652a618487860d26a114 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 6 Feb 2015 12:29:50 +0000 Subject: [PATCH 2/2] Update version number for bug fix --- src/AssemblyInfo.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AssemblyInfo.cs b/src/AssemblyInfo.cs index d832efe..26c6b61 100644 --- a/src/AssemblyInfo.cs +++ b/src/AssemblyInfo.cs @@ -1,7 +1,7 @@ using System.Reflection; using System.Runtime.CompilerServices; -[assembly:AssemblyVersion("4.0.0.90")] +[assembly:AssemblyVersion("4.0.1.90")] [assembly:AssemblyTitle("Mono.Zeroconf")] [assembly:AssemblyDescription("Cross Platform Zeroconf for .NET")] [assembly:AssemblyCopyright("Copyright (C) 2006-2009 Novell, Inc.")]