Skip to content

Commit

Permalink
Clean up Request replies
Browse files Browse the repository at this point in the history
  • Loading branch information
belak committed Jun 12, 2019
1 parent c9e327e commit 465d1bd
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,17 +293,13 @@ func (srv *Server) handleRequests(ctx Context, in <-chan *gossh.Request) {
handler = srv.RequestHandlers["default"]
}
if handler == nil {
if req.WantReply {
req.Reply(false, nil)
}
req.Reply(false, nil)
continue
}
/*reqCtx, cancel := context.WithCancel(ctx)
defer cancel() */
ret, payload := handler.HandleSSHRequest(ctx, srv, req)
if req.WantReply {
req.Reply(ret, payload)
}
req.Reply(ret, payload)
}
}

Expand Down

0 comments on commit 465d1bd

Please sign in to comment.