Skip to content

Commit

Permalink
Remove app even if an error occured on /disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
erdnaxeli authored and vishen committed May 3, 2021
1 parent 0795e28 commit b6046c0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions http/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,6 @@ func (h *Handler) disconnect(w http.ResponseWriter, r *http.Request) {
stopMedia := false
if err := app.Close(stopMedia); err != nil {
h.log("unable to close application: %v", err)
httpError(w, fmt.Errorf("unable to disconnect from device: %w", err))
return
}

h.mu.Lock()
Expand Down

0 comments on commit b6046c0

Please sign in to comment.