Fix for radio stream being null
This commit is contained in:
@@ -22,7 +22,9 @@ function playStreamingRadio(url, loop, volume, element = false) {
|
|||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
function stopStreamingRadio() {
|
function stopStreamingRadio() {
|
||||||
streamingRadio.stop();
|
if(streamingRadio != null) {
|
||||||
|
streamingRadio.stop();
|
||||||
|
}
|
||||||
streamingRadio = null;
|
streamingRadio = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user