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

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