From 250b584866e0e602b4e86da25c6363975c6f790b Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Mon, 31 Jan 2022 13:45:57 -0600 Subject: [PATCH] Fix for radio stream being null --- scripts/client/radio.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/client/radio.js b/scripts/client/radio.js index 33ab85ad..55c78c8c 100644 --- a/scripts/client/radio.js +++ b/scripts/client/radio.js @@ -22,7 +22,9 @@ function playStreamingRadio(url, loop, volume, element = false) { // =========================================================================== function stopStreamingRadio() { - streamingRadio.stop(); + if(streamingRadio != null) { + streamingRadio.stop(); + } streamingRadio = null; }