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