diff options
author | Pierre Ossman <ossman@cendio.se> | 2023-09-08 14:31:31 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2023-09-08 14:57:47 +0200 |
commit | 963f11e3130c0dbf60b7d8df4bd119ab0b6bed40 (patch) | |
tree | e97e7c19f00d0f4f81eb161d7058c4f60040fb99 /common | |
parent | b0c1dbaffd2ef1e2a293a75abb501effb5c085e8 (diff) | |
download | tigervnc-963f11e3130c0dbf60b7d8df4bd119ab0b6bed40.tar.gz tigervnc-963f11e3130c0dbf60b7d8df4bd119ab0b6bed40.zip |
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.
Diffstat (limited to 'common')
-rw-r--r-- | common/network/TcpSocket.cxx | 4 |
1 files changed, 0 insertions, 4 deletions
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<SocketListener*> *listeners, } } - if (new_listeners.empty ()) - throw SocketException("createTcpListeners: no addresses available", - EADDRNOTAVAIL); - listeners->splice (listeners->end(), new_listeners); } |