mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-23 02:31:39 +01:00
look at signalingState when even is fired, not later when it may have changed
This commit is contained in:
parent
3ff91639c6
commit
5ad3f0c671
@ -164,8 +164,9 @@ export class PeerCall implements IDisposable {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
listen("negotiationneeded", () => {
|
listen("negotiationneeded", () => {
|
||||||
|
const signalingState = this.peerConnection.signalingState;
|
||||||
const promiseCreator = () => {
|
const promiseCreator = () => {
|
||||||
return logItem.wrap({l: "onNegotiationNeeded", signalingState: this.peerConnection.signalingState}, log => {
|
return logItem.wrap({l: "onNegotiationNeeded", signalingState}, log => {
|
||||||
return this.handleNegotiation(log);
|
return this.handleNegotiation(log);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user