Skip to content

Commit

Permalink
Adding a todo comment, #106
Browse files Browse the repository at this point in the history
  • Loading branch information
daonb committed May 22, 2024
1 parent 7c6adb6 commit 339e1ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion peers/pane.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ func NewPane(peer *Peer, ws *pty.Winsize, parent int) (*Pane, error) {
return nil, fmt.Errorf(
"Got a pane request with an illegal parrent pane id: %d", parent)
}
parent = parentPane.C.Process.Pid
//TODO: handle a crash here, when there's a parent pane but no process yet
// https://github.com/tuzig/webexec/issues/106
-parent = parentPane.C.Process.Pid

Check failure on line 102 in peers/pane.go

View workflow job for this annotation

GitHub Actions / build

cannot assign to -parent (neither addressable nor a map index expression)
}
if ws != nil {
vt = vt10x.New(vt10x.WithSize(int(ws.Cols), int(ws.Rows)))
Expand Down

0 comments on commit 339e1ec

Please sign in to comment.