fix: remove pendaing outbound group session creation on completed or errored
This commit is contained in:
parent
118f2e6b97
commit
2cd4eb5e2c
|
|
@ -443,8 +443,11 @@ class KeyManager {
|
||||||
}
|
}
|
||||||
_pendingNewOutboundGroupSessions[roomId] =
|
_pendingNewOutboundGroupSessions[roomId] =
|
||||||
_createOutboundGroupSession(roomId);
|
_createOutboundGroupSession(roomId);
|
||||||
await _pendingNewOutboundGroupSessions[roomId];
|
try {
|
||||||
return _pendingNewOutboundGroupSessions.remove(roomId)!;
|
await _pendingNewOutboundGroupSessions[roomId];
|
||||||
|
} finally {
|
||||||
|
return _pendingNewOutboundGroupSessions.remove(roomId)!;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Prepares an outbound group session for a given room ID. That is, load it from
|
/// Prepares an outbound group session for a given room ID. That is, load it from
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue