From 963f11e3130c0dbf60b7d8df4bd119ab0b6bed40 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Fri, 8 Sep 2023 14:31:31 +0200 Subject: More graceful handling of disabled listeners Don't assume a lack of TCP listeners means the server will be unreachable. There might be other methods of access, so let the higher levels do that sanity check instead. --- common/network/TcpSocket.cxx | 4 ---- 1 file changed, 4 deletions(-) (limited to 'common') diff --git a/common/network/TcpSocket.cxx b/common/network/TcpSocket.cxx index 462b8a7b..15730cfd 100644 --- a/common/network/TcpSocket.cxx +++ b/common/network/TcpSocket.cxx @@ -496,10 +496,6 @@ void network::createTcpListeners(std::list *listeners, } } - if (new_listeners.empty ()) - throw SocketException("createTcpListeners: no addresses available", - EADDRNOTAVAIL); - listeners->splice (listeners->end(), new_listeners); } -- cgit v1.2.3