Skip to content
Snippets Groups Projects
Commit bd81b476 authored by yona.walther's avatar yona.walther
Browse files

Update main.go

parent 32f6d9b4
No related branches found
No related tags found
No related merge requests found
...@@ -140,6 +140,7 @@ func DisplayPicture(c echo.Context) error { ...@@ -140,6 +140,7 @@ func DisplayPicture(c echo.Context) error {
mutex.Lock() mutex.Lock()
defer mutex.Unlock() defer mutex.Unlock()
if displayPictureIsRunning { if displayPictureIsRunning {
displayPictureIsRunning = false
errSig := syscall.Kill(pidExecDisplayPicture, syscall.SIGINT) errSig := syscall.Kill(pidExecDisplayPicture, syscall.SIGINT)
if errSig != nil { if errSig != nil {
return c.String(http.StatusInternalServerError, "A problem has been encountered while stopping displayPicture: "+errSig.Error()+"\n") return c.String(http.StatusInternalServerError, "A problem has been encountered while stopping displayPicture: "+errSig.Error()+"\n")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment