Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
adwpc committed Feb 12, 2021
1 parent 4c542ae commit 54592a1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions decs.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ interface RTCPeerConnection extends EventTarget {
readonly signalingState: RTCSignalingState;
readonly connectionState: RTCPeerConnectionState;

restartIce(): void;
getConfiguration(): RTCConfiguration;
setConfiguration(configuration: RTCConfiguration): void;
close(): void;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@
"ion",
"js"
]
}
}
2 changes: 1 addition & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class Transport {
}
};

this.pc.oniceconnectionstatechange = (e) => {
this.pc.oniceconnectionstatechange = async (e) => {
if (this.pc.iceConnectionState === "failed") {
if (this.pc.restartIce) {
this.pc.restartIce();
Expand Down

0 comments on commit 54592a1

Please sign in to comment.