src: Make broadcasts work again (#3190)

This commit is contained in:
Vlad Frangu
2019-04-08 19:29:19 +03:00
committed by Amish Shah
parent f479afca82
commit 89e27e5071

View File

@@ -74,6 +74,7 @@ class VoiceBroadcast extends EventEmitter {
add(dispatcher) {
const index = this.dispatchers.indexOf(dispatcher);
if (index === -1) {
this.dispatchers.push(dispatcher);
/**
* Emitted whenever a stream dispatcher subscribes to the broadcast.
* @event VoiceBroadcast#subscribe