aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer/vncviewer.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2015-09-23 12:20:32 +0200
committerPierre Ossman <ossman@cendio.se>2015-09-23 12:20:32 +0200
commit1db732494b625df465797faaec3d76d535e69d43 (patch)
treec04da6ff9ccc49aab26f890d840327af9b4e94c8 /vncviewer/vncviewer.cxx
parentd9b9003d977f8aaf37010c70bdac0b827749d554 (diff)
downloadtigervnc-1db732494b625df465797faaec3d76d535e69d43.tar.gz
tigervnc-1db732494b625df465797faaec3d76d535e69d43.zip
Terminate the viewer even when waiting for data
It should be possible to exit the viewer even if the network has stalled in the middle of a transfer.
Diffstat (limited to 'vncviewer/vncviewer.cxx')
-rw-r--r--vncviewer/vncviewer.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/vncviewer/vncviewer.cxx b/vncviewer/vncviewer.cxx
index 4b989bb2..f9258b90 100644
--- a/vncviewer/vncviewer.cxx
+++ b/vncviewer/vncviewer.cxx
@@ -117,6 +117,11 @@ void exit_vncviewer(const char *error)
exitMainloop = true;
}
+bool should_exit()
+{
+ return exitMainloop;
+}
+
void about_vncviewer()
{
fl_message_title(_("About TigerVNC Viewer"));