Skip to content

Commit

Permalink
Fix merge mikstake
Browse files Browse the repository at this point in the history
  • Loading branch information
chazlarson authored Nov 11, 2020
1 parent 9acd8da commit f43e486
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ func ginrus() gin.HandlerFunc {
}
}

func setupSSDP(baseAddress, deviceName, deviceUUID string) error {
func setupSSDP(baseAddress, deviceName, deviceUUID string) (*ssdp.Advertiser, error) {
log.Debugf("Advertising telly as %s (%s)", deviceName, deviceUUID)

adv, err := ssdp.Advertise(
Expand All @@ -294,7 +294,7 @@ func setupSSDP(baseAddress, deviceName, deviceUUID string) error {
1800)

if err != nil {
return err
return nil, err
}

go func(advertiser *ssdp.Advertiser) {
Expand All @@ -308,7 +308,7 @@ func setupSSDP(baseAddress, deviceName, deviceUUID string) error {
}
}(adv)

return nil
return adv, nil
}

func split(data []byte, atEOF bool) (advance int, token []byte, spliterror error) {
Expand Down

0 comments on commit f43e486

Please sign in to comment.