forked from mystiq/hydrogen-web
await hangup here, so log doesn't terminate early
This commit is contained in:
parent
9efe294a79
commit
3edfbd2cf6
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ export class Member {
|
||||||
connection.logItem.wrap("disconnect", async log => {
|
connection.logItem.wrap("disconnect", async log => {
|
||||||
disconnectLogItem = log;
|
disconnectLogItem = log;
|
||||||
if (hangup) {
|
if (hangup) {
|
||||||
connection.peerCall?.hangup(CallErrorCode.UserHangup, log);
|
await connection.peerCall?.hangup(CallErrorCode.UserHangup, log);
|
||||||
} else {
|
} else {
|
||||||
await connection.peerCall?.close(undefined, log);
|
await connection.peerCall?.close(undefined, log);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue