fix: remove pendaing outbound group session creation on completed or errored

This commit is contained in:
h.carnot 2022-03-24 13:52:28 +01:00
parent 118f2e6b97
commit 2cd4eb5e2c
1 changed files with 5 additions and 2 deletions

View File

@ -443,9 +443,12 @@ class KeyManager {
}
_pendingNewOutboundGroupSessions[roomId] =
_createOutboundGroupSession(roomId);
try {
await _pendingNewOutboundGroupSessions[roomId];
} finally {
return _pendingNewOutboundGroupSessions.remove(roomId)!;
}
}
/// Prepares an outbound group session for a given room ID. That is, load it from
/// the database, cycle it if needed and create it if absent.