aboutsummaryrefslogtreecommitdiffstats
path: root/win/winvnc
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2015-03-17 13:44:00 +0100
committerPierre Ossman <ossman@cendio.se>2015-03-17 17:18:50 +0100
commit79f82f95c1826b10fc39bc30ff1ecb00701557f7 (patch)
tree04f805fe01d81797639c62b1a8bc5236b19c4d27 /win/winvnc
parent3aaaf66fb11d2a3b4abce5609f9995892fe66cad (diff)
downloadtigervnc-79f82f95c1826b10fc39bc30ff1ecb00701557f7.tar.gz
tigervnc-79f82f95c1826b10fc39bc30ff1ecb00701557f7.zip
Local address change events are not socket specific
Diffstat (limited to 'win/winvnc')
-rw-r--r--win/winvnc/VNCServerWin32.cxx6
-rw-r--r--win/winvnc/VNCServerWin32.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/win/winvnc/VNCServerWin32.cxx b/win/winvnc/VNCServerWin32.cxx
index 03899856..dbbf7c79 100644
--- a/win/winvnc/VNCServerWin32.cxx
+++ b/win/winvnc/VNCServerWin32.cxx
@@ -90,8 +90,8 @@ VNCServerWin32::~VNCServerWin32() {
}
-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 @@ void VNCServerWin32::regConfigChanged() {
httpSock.setFilter(pattern.buf);
// -=- Update the tray icon tooltip text with IP addresses
- processAddressChange(rfbSock.sock);
+ processAddressChange();
}
diff --git a/win/winvnc/VNCServerWin32.h b/win/winvnc/VNCServerWin32.h
index 1feae368..b85814a4 100644
--- a/win/winvnc/VNCServerWin32.h
+++ b/win/winvnc/VNCServerWin32.h
@@ -82,7 +82,7 @@ namespace winvnc {
// SocketManager::AddressChangeNotifier interface
// Used to keep tray icon up to date
- virtual void processAddressChange(network::SocketListener* sl);
+ virtual void processAddressChange();
// RegConfig::Callback interface
// Called via the EventManager whenver RegConfig sees the registry change