fix: Fixes random crashing when resizing the window.
This commit is contained in:
parent
3a69222ee5
commit
56338544b5
1 changed files with 4 additions and 1 deletions
|
@ -69,7 +69,10 @@ server.on("connection", client => {
|
|||
|
||||
// We're dumb. We don't really care.
|
||||
conn.on("pty", accept => accept());
|
||||
conn.on("window-change", accept => accept());
|
||||
conn.on("window-change", accept => {
|
||||
if (typeof accept != "function") return;
|
||||
accept();
|
||||
});
|
||||
|
||||
conn.on("shell", async accept => {
|
||||
const stream = accept();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue