mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-07-23 22:51:00 -04:00
not much better, some race condition exists. figuring that out.
This commit is contained in:
parent
ce4601b575
commit
f896fc822c
2 changed files with 4 additions and 4 deletions
|
@ -24,7 +24,7 @@ class DHTShortArrayCubit<T> extends Cubit<DHTShortArrayBusyState<T>>
|
|||
_wantsCloseRecord = true;
|
||||
|
||||
// Make initial state update
|
||||
await _refreshNoWait();
|
||||
unawaited(_refreshNoWait());
|
||||
_subscription = await _shortArray.listen(_update);
|
||||
});
|
||||
}
|
||||
|
@ -37,7 +37,7 @@ class DHTShortArrayCubit<T> extends Cubit<DHTShortArrayBusyState<T>>
|
|||
super(const BlocBusyState(AsyncValue.loading())) {
|
||||
_initFuture = Future(() async {
|
||||
// Make initial state update
|
||||
await _refreshNoWait();
|
||||
unawaited(_refreshNoWait());
|
||||
_subscription = await shortArray.listen(_update);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue