mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-11-10 04:40:25 +01:00
feat(pty): call _close() on NOTIFICATION_EXIT_TREE
This commit is contained in:
parent
8fa7df29d3
commit
e1000adbe5
2 changed files with 3 additions and 5 deletions
|
@ -72,10 +72,6 @@ PTY::PTY() {
|
|||
#endif
|
||||
}
|
||||
|
||||
PTY::~PTY() {
|
||||
_close();
|
||||
}
|
||||
|
||||
int PTY::get_cols() const {
|
||||
return cols;
|
||||
}
|
||||
|
@ -202,6 +198,9 @@ void PTY::_notification(int p_what) {
|
|||
_run(UV_RUN_NOWAIT);
|
||||
}
|
||||
break;
|
||||
case NOTIFICATION_EXIT_TREE:
|
||||
_close();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -40,7 +40,6 @@ namespace godot
|
|||
};
|
||||
|
||||
PTY();
|
||||
~PTY();
|
||||
|
||||
Status status = STATUS_CLOSED;
|
||||
|
||||
|
|
Loading…
Reference in a new issue