private void PollLoop() { try { lock (this) { avahi_simple_poll_loop (spoll); Monitor.Pulse (this); } } catch (Exception e) { Console.Error.WriteLine ("Error in avahi-sharp event loop: " + e); } }