jbagg / QtZeroConf

Qt wrapper class for ZeroConf libraries across various platforms.
Other
69 stars 51 forks source link

SIGABRT if Avahi is not running on Linux #60

Closed vicr123 closed 1 year ago

vicr123 commented 1 year ago

If Avahi isn't running, pri->client ends up null, and there is no way to check for this condition. Attempting to start a service publish or a browser results in Avahi throwing up a SIGABRT

It would be great if there was a way to check if required services are available and running before running any of the functions that require a valid client.

jbagg commented 1 year ago

I modified startBrowser() and startServicePublish() to emit an error and return if pri->client is null (on latest master). Let me know if this fixes your issue.

vicr123 commented 1 year ago

Works great, thanks for that!