Local address change events are not socket specific
diff --git a/win/winvnc/VNCServerWin32.cxx b/win/winvnc/VNCServerWin32.cxx
index 0389985..dbbf7c7 100644
--- a/win/winvnc/VNCServerWin32.cxx
+++ b/win/winvnc/VNCServerWin32.cxx
@@ -90,8 +90,8 @@
}
-void VNCServerWin32::processAddressChange(network::SocketListener* sock_) {
- if (!trayIcon || (sock_ != rfbSock.sock))
+void VNCServerWin32::processAddressChange() {
+ if (!trayIcon)
return;
// Tool-tip prefix depends on server mode
@@ -144,7 +144,7 @@
httpSock.setFilter(pattern.buf);
// -=- Update the tray icon tooltip text with IP addresses
- processAddressChange(rfbSock.sock);
+ processAddressChange();
}