Skip to content

Commit

Permalink
Fixed /input was returning same inputs from init inputs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Flowing committed Mar 10, 2020
1 parent ab704d6 commit a03268c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ func GetvMixURLHandler(c *gin.Context) {

// RefreshInputHandler returns vMix API Endpoint.
func RefreshInputHandler(c *gin.Context) {
vmix, err := vmix.Refresh()
var err error
vmix, err = vmix.Refresh()
if err != nil {
c.AbortWithStatusJSON(http.StatusInternalServerError, gin.H{
"err": err.Error(),
Expand Down

0 comments on commit a03268c

Please sign in to comment.