desktop/source/offacc/acceptor.cxx | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit cd72a672c9848934c1c1e76a5df4dfe606611e3c Author: Casey Harkins <[email protected]> AuthorDate: Fri Oct 3 20:55:14 2025 -0500 Commit: Stephan Bergmann <[email protected]> CommitDate: Mon Oct 6 10:18:26 2025 +0200 Break if acceptor throws ConnectionSetupException. If the acceptor throws a ConnectionSetupException, assume the connection is invalid and break out of the run method to avoid busy looping the failure. Change-Id: I67d17a34806f6210518f7a683e5d68a5d9b685f2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191842 Reviewed-by: Stephan Bergmann <[email protected]> Tested-by: Jenkins diff --git a/desktop/source/offacc/acceptor.cxx b/desktop/source/offacc/acceptor.cxx index dd90a0c88526..9f7d9ada9645 100644 --- a/desktop/source/offacc/acceptor.cxx +++ b/desktop/source/offacc/acceptor.cxx @@ -22,6 +22,7 @@ #include "acceptor.hxx" #include <com/sun/star/bridge/BridgeFactory.hpp> #include <com/sun/star/connection/Acceptor.hpp> +#include <com/sun/star/connection/ConnectionSetupException.hpp> #include <com/sun/star/uno/XNamingService.hpp> #include <officecfg/Office/Security.hxx> #include <cppuhelper/supportsservice.hxx> @@ -121,6 +122,9 @@ void Acceptor::run() // the bridge, it will be destructed. m_bridges.add(m_rBridgeFactory->createBridge( u""_ustr, m_aProtocol, rConnection, rInstanceProvider)); + } catch (const ConnectionSetupException&) { + TOOLS_WARN_EXCEPTION("desktop.offacc", ""); + break; } catch (const Exception&) { TOOLS_WARN_EXCEPTION("desktop.offacc", ""); // connection failed...
