File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " asterion"
3- version = " 0.3.3 "
3+ version = " 0.3.4 "
44edition = " 2021"
55authors = [" Alessandro Ricottone <ricott2@gmail.com>" ]
66license = " GPL-3.0-or-later"
Original file line number Diff line number Diff line change @@ -68,6 +68,11 @@ impl SSHWriterProxy {
6868 self . flushing = false ;
6969 Ok ( data_length)
7070 }
71+
72+ pub async fn exit ( & mut self ) {
73+ let _ = self . handle . eof ( self . channel_id ) . await ;
74+ let _ = self . handle . close ( self . channel_id ) . await ;
75+ }
7176}
7277
7378#[ derive( Debug ) ]
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ impl Tui {
107107 ) ?;
108108
109109 self . terminal . backend_mut ( ) . writer_mut ( ) . send ( ) . await ?;
110-
110+ self . terminal . backend_mut ( ) . writer_mut ( ) . exit ( ) . await ;
111111 Ok ( ( ) )
112112 }
113113}
You can’t perform that action at this time.
0 commit comments