mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
await hangup here, so log doesn't terminate early
This commit is contained in:
parent
9efe294a79
commit
3edfbd2cf6
@ -157,7 +157,7 @@ export class Member {
|
||||
connection.logItem.wrap("disconnect", async log => {
|
||||
disconnectLogItem = log;
|
||||
if (hangup) {
|
||||
connection.peerCall?.hangup(CallErrorCode.UserHangup, log);
|
||||
await connection.peerCall?.hangup(CallErrorCode.UserHangup, log);
|
||||
} else {
|
||||
await connection.peerCall?.close(undefined, log);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user