From 9d786ef3bee72c09bec8b40ba0cc68dae45c09ca Mon Sep 17 00:00:00 2001 From: LordGrey <48840279+Lord-Grey@users.noreply.github.com> Date: Sat, 2 Sep 2023 22:23:35 +0200 Subject: [PATCH] Fix MDNSBrower - if timeout during host resolvment occurs --- libsrc/mdns/MdnsBrowser.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libsrc/mdns/MdnsBrowser.cpp b/libsrc/mdns/MdnsBrowser.cpp index 4c0e4b9e..f4f63500 100644 --- a/libsrc/mdns/MdnsBrowser.cpp +++ b/libsrc/mdns/MdnsBrowser.cpp @@ -182,6 +182,7 @@ bool MdnsBrowser::resolveAddress(Logger* log, const QString& hostname, QHostAddr } else { + QObject::disconnect(&MdnsBrowser::getInstance(), &MdnsBrowser::addressResolved, nullptr, nullptr); Error(log, "Resolved mDNS hostname [%s] timed out", QSTRING_CSTR(hostname)); } }