Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli.StopMedia() Dose not work #3

Open
Dontmindmes opened this issue Dec 8, 2018 · 0 comments
Open

cli.StopMedia() Dose not work #3

Dontmindmes opened this issue Dec 8, 2018 · 0 comments

Comments

@Dontmindmes
Copy link
Contributor

When i attempt to run call cli.StopMedia() it throws an error and does not stop the audio

`exit status 2
PS C:\Users\test\Documents\Visual Go Lang\GHome IPV4\GHome Adhan> go run main.go
panic: runtime error: invalid memory address or nil pointer dereference
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0x63239d]

goroutine 1 [running]:
github.com/barnybug/go-cast.(*Client).Close(0xc042087bb8)
C:/Users/test/go/src/github.com/barnybug/go-cast/client.go:121 +0x2d
PS C:\Users\test\Documents\Visual Go Lang\GHome IPV4\GHome Adhan> go run main.go
http://api.aladhan.com/v1/timingsByCity?city=Anaheim&country=UnitedStates&method=8
Current Isha time 18:13
09:47
panic: runtime error: invalid memory address or nil pointer dereference
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0x63239d]

goroutine 1 [running]:
github.com/barnybug/go-cast.(*Client).Close(0xc042087bb8)
C:/Users/test/go/src/github.com/barnybug/go-cast/client.go:121 +0x2d
panic(0x697c80, 0x86d4e0)
C:/Go/src/runtime/panic.go:505 +0x237
github.com/barnybug/go-cast/controllers.(*ReceiverController).GetStatus(0x0, 0xae4060, 0xc04206c058, 0x40e60f, 0x6a3a20, 0x6afce0)
C:/Users/test/go/src/github.com/barnybug/go-cast/controllers/receiver.go:150 +0x3e
github.com/barnybug/go-cast.(*Client).IsPlaying(0xc042087bb8, 0xae4060, 0xc04206c058, 0xae4060)
C:/Users/test/go/src/github.com/barnybug/go-cast/client.go:163 +0x4e
github.com/evalphobia/google-home-client-go/googlehome.(*Client).StopMedia(0xc042096500, 0x0, 0x0)
C:/Users/test/go/src/github.com/evalphobia/google-home-client-go/googlehome/client.go:151 +0x1b6
main.main()
C:/Users/test/Documents/Visual Go Lang/GHome IPV4/GHome Adhan/main.go:112 +0x86f
exit status 2`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant