Skip to content

Commit 339e1ec

Browse files
committed
Adding a todo comment, #106
1 parent 7c6adb6 commit 339e1ec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

peers/pane.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ func NewPane(peer *Peer, ws *pty.Winsize, parent int) (*Pane, error) {
9797
return nil, fmt.Errorf(
9898
"Got a pane request with an illegal parrent pane id: %d", parent)
9999
}
100-
parent = parentPane.C.Process.Pid
100+
//TODO: handle a crash here, when there's a parent pane but no process yet
101+
// https://github.com/tuzig/webexec/issues/106
102+
-parent = parentPane.C.Process.Pid
101103
}
102104
if ws != nil {
103105
vt = vt10x.New(vt10x.WithSize(int(ws.Cols), int(ws.Rows)))

0 commit comments

Comments
 (0)