Skip to content

Commit 8877bff

Browse files
close session in finally block
1 parent ccad59b commit 8877bff

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/programs/telnetd.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ export default {
199199
spawn_result.process.kill();
200200
} catch (e) {
201201
session_term.writeln(`${session_term.ansi.PREFABS.error}Failed to spawn shell: ${e.message}${session_term.ansi.STYLE.reset_all}`);
202+
} finally {
202203
session_term.dispose();
203204
}
204205
});

0 commit comments

Comments
 (0)