Skip to content

Commit

Permalink
Fix: 删除recover
Browse files Browse the repository at this point in the history
  • Loading branch information
zijiren233 committed Jul 2, 2022
1 parent 22347e7 commit 0067c3e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,7 @@ func main() {
fmt.Printf("[MCSMANAGER-TTY] Process Start Error:%s\n", err)
os.Exit(-1)
}

defer func() {
Pty.Close()
if err := recover(); err != nil {
fmt.Printf("[MCSMANAGER-TTY] Recover Point Error: %s", err)
}
}()
defer Pty.Close()

Pty.Setsize(50, 50)
Pty.HandleStdIO()
Expand Down

0 comments on commit 0067c3e

Please sign in to comment.