summaryrefslogtreecommitdiffstats
path: root/lib/vty.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vty.c')
-rw-r--r--lib/vty.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/vty.c b/lib/vty.c
index 51bf4a5a..9b1e5d87 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -440,7 +440,8 @@ uty_reset (bool curtains, const char* why)
vio = next ;
next = sdl_next(vio, vio_list) ;
- cq_revoke(vio->vty) ;
+ if (vio->type == VTY_TERM)
+ cq_revoke(vio->vty) ;
if (why != NULL)
vio->close_reason = why ;