Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: viewtopic.php?t=37864

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://twitter.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

VNCViewer slow termination

Post Reply
vitouso
Posts: 1
Joined: 2014-02-11 21:23

VNCViewer slow termination

Post by vitouso »

When I was trying to call VNCviewer from another application and wait for it's termination, I have found, that there is really big delay (more than 2sec) after manually closing window, when application is still running on the background.

I have found where it's hanging for most of the time and it's here:

ClientConnection::run_undetached - line 4607

Sleep(2000);

What is the reason for this sleep? Is it used just for autoreconnect as some big enough delay or why? Could it be possibly replaced with something like this:

if (m_autoReconnect > 0) Sleep(2000);
Post Reply