Skip to content

Commit b74bc01

Browse files
committed
log handlers
1 parent 3934fba commit b74bc01

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/core/EventBus.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,13 @@ function EventBus() {
123123
payload.mediaType = filters.mediaType;
124124
}
125125

126+
if (type === 'streamTeardownComplete') {
127+
console.log('streamTeardownComplete', payload);
128+
console.log('handlers:');
129+
for (let h of handlers[type]) {
130+
console.log('handler', h);
131+
}
132+
}
126133
const handlersToRemove = [];
127134
handlers[type]
128135
.filter((handler) => {
@@ -142,6 +149,9 @@ function EventBus() {
142149
return true;
143150
})
144151
.forEach((handler) => {
152+
if (type === 'streamTeardownComplete') {
153+
console.log('triggering handler', handler);
154+
}
145155
handler && handler.callback.call(handler.scope, payload);
146156
if (handler.executeOnlyOnce) {
147157
handlersToRemove.push(handler);

0 commit comments

Comments
 (0)