summaryrefslogtreecommitdiffstats
path: root/lib/vty_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vty_io.c')
-rw-r--r--lib/vty_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vty_io.c b/lib/vty_io.c
index 2eadc2d1..b0915559 100644
--- a/lib/vty_io.c
+++ b/lib/vty_io.c
@@ -1195,7 +1195,7 @@ uty_sock_close(vio_sock sock)
sock->fd = -1 ;
if (sock->t_read != NULL)
- thread_cancel(sock->t_write) ;
+ thread_cancel(sock->t_read) ;
if (sock->t_write != NULL)
thread_cancel(sock->t_write) ;