mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-07-23 06:31:13 -04:00
fix deadlock
clean up async handling improve styled alerts
This commit is contained in:
parent
22390f31ff
commit
8edccb8a0f
21 changed files with 125 additions and 108 deletions
|
@ -78,13 +78,13 @@ class PerAccountCollectionCubit extends Cubit<PerAccountCollectionState> {
|
|||
await _accountRecordSubscription?.cancel();
|
||||
_accountRecordSubscription = null;
|
||||
|
||||
// Update state to 'loading'
|
||||
nextState = _updateAccountRecordState(nextState, null);
|
||||
emit(nextState);
|
||||
|
||||
// Close AccountRecordCubit
|
||||
await accountRecordCubit?.close();
|
||||
accountRecordCubit = null;
|
||||
|
||||
// Update state to 'loading'
|
||||
nextState = _updateAccountRecordState(nextState, null);
|
||||
emit(nextState);
|
||||
} else {
|
||||
///////////////// Logged in ///////////////////
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue