diff --git a/lib/core/VoiceConnection.js b/lib/core/VoiceConnection.js
index <HASH>..<HASH> 100644
--- a/lib/core/VoiceConnection.js
+++ b/lib/core/VoiceConnection.js
@@ -327,7 +327,11 @@ class VoiceConnection extends EventEmitter {
 
         var onError = (e) => {
             encoder.kill();
-            stream.destroy();
+            
+            if(typeof stream.destroy === 'function') {
+                stream.destroy();
+            }
+
             if(e && this.playing) {
                 this.emit("error", e);
             }
Fix error where stream.destroy does not always exist