Tiny text changes

This commit is contained in:
Schuyler Cebulskie
2016-09-17 23:22:12 -04:00
parent 74b9e5d643
commit ab7682f921

View File

@@ -73,14 +73,14 @@ class VoiceConnectionPlayer extends EventEmitter {
} }
if (streams.pcmConverter && streams.pcmConverter.kill) { if (streams.pcmConverter && streams.pcmConverter.kill) {
streams.pcmConverter.kill('SIGINT'); streams.pcmConverter.kill('SIGINT');
this.emit(Constants.Events.DEBUG, '- Killed the pcm converter'); this.emit(Constants.Events.DEBUG, '- Killed the PCM converter');
} }
} catch (err) { } catch (err) {
// if an error happened make sure the pcm converter is killed anyway // if an error happened make sure the pcm converter is killed anyway
try { try {
if (streams.pcmConverter && streams.pcmConverter.kill) { if (streams.pcmConverter && streams.pcmConverter.kill) {
streams.pcmConverter.kill('SIGINT'); streams.pcmConverter.kill('SIGINT');
this.emit(Constants.Events.DEBUG, '- Killed the pcm converter after previous error (abnormal)'); this.emit(Constants.Events.DEBUG, '- Killed the PCM converter after previous error (abnormal)');
} }
} catch (e) { } catch (e) {
return e; return e;