summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/vte.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vte.c b/src/vte.c
index e5149c9c..5919416e 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -8426,11 +8426,11 @@ vte_terminal_finalize(GObject *object)
if (terminal->pvt->child_watch_source != 0) {
g_source_remove (terminal->pvt->child_watch_source);
terminal->pvt->child_watch_source = 0;
+ g_child_watch_add_full(G_PRIORITY_HIGH,
+ terminal->pvt->pty_pid,
+ (GChildWatchFunc)vte_terminal_child_watch_cb,
+ NULL, NULL);
}
- g_child_watch_add_full(G_PRIORITY_HIGH,
- terminal->pvt->pty_pid,
- (GChildWatchFunc)vte_terminal_child_watch_cb,
- NULL, NULL);
/* Stop processing input. */
vte_terminal_stop_processing (terminal);