Fix consumer interface check panic
This commit is contained in:
+2
-2
@@ -26,8 +26,8 @@ func (s *Stream) Play(source string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// check if client support consumer interface
|
// check if client support consumer interface
|
||||||
cons := client.(streamer.Consumer)
|
cons, ok := client.(streamer.Consumer)
|
||||||
if cons == nil {
|
if !ok {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user