fix lints
This commit is contained in:
@@ -26,12 +26,8 @@ import {
|
|||||||
mockMediaDevices,
|
mockMediaDevices,
|
||||||
} from "../../../utils/test";
|
} from "../../../utils/test";
|
||||||
import { Publisher } from "./Publisher";
|
import { Publisher } from "./Publisher";
|
||||||
import {
|
import { type Connection } from "../remoteMembers/Connection";
|
||||||
type Connection,
|
|
||||||
type ConnectionState,
|
|
||||||
} from "../remoteMembers/Connection";
|
|
||||||
import { type MuteStates } from "../../MuteStates";
|
import { type MuteStates } from "../../MuteStates";
|
||||||
import { FailToStartLivekitConnection } from "../../../utils/errors";
|
|
||||||
|
|
||||||
describe("Publisher", () => {
|
describe("Publisher", () => {
|
||||||
let scope: ObservableScope;
|
let scope: ObservableScope;
|
||||||
|
|||||||
@@ -177,7 +177,11 @@ export class Connection {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.logger.debug(`Failed to connect to LiveKit room: ${error}`);
|
this.logger.debug(`Failed to connect to LiveKit room: ${error}`);
|
||||||
this._state$.next(
|
this._state$.next(
|
||||||
error instanceof ElementCallError ? error : new UnknownCallError(error),
|
error instanceof ElementCallError
|
||||||
|
? error
|
||||||
|
: error instanceof Error
|
||||||
|
? new UnknownCallError(error)
|
||||||
|
: new UnknownCallError(new Error(`${error}`)),
|
||||||
);
|
);
|
||||||
// Its okay to ignore the throw. The error is part of the state.
|
// Its okay to ignore the throw. The error is part of the state.
|
||||||
throw error;
|
throw error;
|
||||||
|
|||||||
Reference in New Issue
Block a user