From 45bb6cfe0537dc21a98908241223a2b82bc993df Mon Sep 17 00:00:00 2001 From: root Date: Fri, 31 Dec 1999 20:17:35 -0500 Subject: cancel vxi panel lockout if all vxi connections are gone? --- vxi11_server.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'vxi11_server.c') 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 -- cgit