Skip to content

Commit

Permalink
Close ScreenshotService
Browse files Browse the repository at this point in the history
Co-authored-by: dmissmann <[email protected]>
  • Loading branch information
aluedeke and dmissmann authored Oct 10, 2024
1 parent a507012 commit 2f1c982
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions restapi/api/device_endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ func Screenshot(c *gin.Context) {
c.JSON(http.StatusInternalServerError, GenericResponse{Error: err.Error()})
return
}
defer screenshotService.Close()

imageBytes, err := screenshotService.TakeScreenshot()
if err != nil {
Expand Down

0 comments on commit 2f1c982

Please sign in to comment.