Skip to content

Commit

Permalink
handle nil process
Browse files Browse the repository at this point in the history
  • Loading branch information
muraty committed Oct 2, 2020
1 parent 99d2480 commit c75fd1b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ func (d *Daemon) conns(w http.ResponseWriter, req *http.Request) {

process := d.findProcess(conn.Pid, processes)
if err != nil {
log.Debugf("Error occured while finding the process %s\n", err.Error())
continue
}
if process == nil {
log.Debugf("Process could not found for %d\n", conn.Pid)
continue
}
Expand Down

0 comments on commit c75fd1b

Please sign in to comment.