|
|
@ -72,8 +72,12 @@ func setScene(c *fiber.Ctx) error { |
|
|
|
} |
|
|
|
|
|
|
|
func stopScene(c *fiber.Ctx) error { |
|
|
|
currentScene = nil |
|
|
|
sceneStopChannel <- true |
|
|
|
if nil != testStopChannel { |
|
|
|
testStopChannel <- true |
|
|
|
} |
|
|
|
if nil != sceneStopChannel { |
|
|
|
sceneStopChannel <- true |
|
|
|
} |
|
|
|
return successResponse(c, "Updated successfully.") |
|
|
|
} |
|
|
|
|
|
|
@ -130,6 +134,7 @@ func sceneTaskProc(cmd *SceneCommand) error { |
|
|
|
case <-sceneStopChannel: |
|
|
|
log.Println("Scene Stopping...") |
|
|
|
go pushEvent(cmd.PushUrl, cmd.Scene, 0, "SCENE END", false, false) |
|
|
|
currentScene = nil |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|