From 4ca5e94fa8799abb475620cf9cd935af372b2407 Mon Sep 17 00:00:00 2001 From: James Willcox Date: Tue, 18 Apr 2006 13:46:49 +0000 Subject: [PATCH] add a missing lock git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1188 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-sharp/EntryGroup.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/avahi-sharp/EntryGroup.cs b/avahi-sharp/EntryGroup.cs index ab89544..02be643 100644 --- a/avahi-sharp/EntryGroup.cs +++ b/avahi-sharp/EntryGroup.cs @@ -236,11 +236,15 @@ namespace Avahi private void AddService (int iface, Protocol proto, PublishFlags flags, string name, string type, string domain, string host, UInt16 port, IntPtr list) { - int ret = avahi_entry_group_add_service_strlst (handle, iface, proto, flags, + int ret; + + lock (client) { + ret = avahi_entry_group_add_service_strlst (handle, iface, proto, flags, Utility.StringToBytes (name), Utility.StringToBytes (type), Utility.StringToBytes (domain), Utility.StringToBytes (host), port, list); + } avahi_string_list_free (list); -- 2.39.5