await hangup here, so log doesn't terminate early

This commit is contained in:
Bruno Windels 2022-06-01 15:30:25 +02:00
parent 9efe294a79
commit 3edfbd2cf6
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}