summaryrefslogtreecommitdiff
path: root/vxi11_server.c
diff options
context:
space:
mode:
authorroot <root@avtech.domain.avtechpulse.com>1999-12-31 20:17:35 -0500
committerroot <root@avtech.domain.avtechpulse.com>1999-12-31 20:17:35 -0500
commit45bb6cfe0537dc21a98908241223a2b82bc993df (patch)
treedebd4883b94995cc33e4d3092ecc1a34af057bde /vxi11_server.c
parent85efa1743156178ba9de21d05ea6d2117b0a327e (diff)
cancel vxi panel lockout if all vxi connections are gone?
Diffstat (limited to 'vxi11_server.c')
-rw-r--r--vxi11_server.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/vxi11_server.c b/vxi11_server.c
index 9c697d9..d518fe4 100644
--- a/vxi11_server.c
+++ b/vxi11_server.c
@@ -123,6 +123,12 @@ static bool waitForLock(Device_Flags flags, long timeout) {
static void freelink(ActiveLink* link) {
links[link->lid] = NULL;
globals.Remote.vxi_connections--;
+
+ if (globals.Remote.vxi_connections == 0) {
+ // cancel any remaining panel locks
+ globals.Remote.vxi_panel_lock = 0;
+ }
+
#ifdef DEBUG
printf("link %d destroyed, %d active links\n", link->lid, globals.Remote.vxi_connections);
#endif