aboutsummaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
Diffstat (limited to 'win')
-rw-r--r--win/winvnc/VNCServerWin32.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/winvnc/VNCServerWin32.cxx b/win/winvnc/VNCServerWin32.cxx
index 36dbcee1..03899856 100644
--- a/win/winvnc/VNCServerWin32.cxx
+++ b/win/winvnc/VNCServerWin32.cxx
@@ -101,8 +101,8 @@ void VNCServerWin32::processAddressChange(network::SocketListener* sock_) {
// Fetch the list of addresses
std::list<char*> addrs;
- if (rfbSock.sock)
- rfbSock.sock->getMyAddresses(&addrs);
+ if (rfbSock.isListening())
+ TcpListener::getMyAddresses(&addrs);
else
addrs.push_front(strDup("Not accepting connections"));