Fix consumer interface check panic

This commit is contained in:
Alexey Khit
2023-02-17 09:33:46 +03:00
parent 70c415a1d8
commit adb424033f
+2 -2
View File
@@ -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
} }