Update dependencies

This commit is contained in:
hensm
2022-01-10 15:26:45 +00:00
parent 6f2bfb0340
commit 7ab541643a
10 changed files with 14728 additions and 1339 deletions

View File

@@ -5,7 +5,10 @@ import logger from "../../lib/logger";
import { ReceiverDevice } from "../../types";
import { ErrorCallback, SuccessCallback } from "../types";
import { onMessage, sendMessageResponse } from "../eventMessageChannel";
import {
onMessage,
sendMessageResponse
} from "../eventMessageChannel";
import {
AutoJoinPolicy,
@@ -306,8 +309,11 @@ onMessage(message => {
if (session) {
session.status = SessionStatus.STOPPED;
for (const listener of session?._updateListeners) {
listener(false);
const updateListeners = session?._updateListeners;
if (updateListeners) {
for (const listener of updateListeners) {
listener(false);
}
}
}