check
This commit is contained in:
@@ -222,18 +222,6 @@ final syncBootstrapProvider = FutureProvider<void>((ref) async {
|
||||
await store.syncConfig.load(ref.read(syncConfigProvider));
|
||||
}
|
||||
|
||||
// Bring back the session this terminal was signed in under.
|
||||
//
|
||||
// Runs before the engine starts, and that ordering is load-bearing: the
|
||||
// session carries both the bearer token and the outlet, so a drain that began
|
||||
// first would upload the day's bills unauthenticated — and, once the backend
|
||||
// is enforcing, have them refused.
|
||||
//
|
||||
// A till signs in when a shop opens and trades all day. Without this a reboot
|
||||
// mid-shift would put a login screen in front of a queue of customers, which
|
||||
// is a worse outage than the one it protects against.
|
||||
await ref.read(authControllerProvider.notifier).restore();
|
||||
|
||||
await ref.read(connectivityServiceProvider).start();
|
||||
|
||||
final engine = ref.read(syncEngineProvider);
|
||||
|
||||
@@ -95,7 +95,7 @@ class _SignOutDialogState extends ConsumerState<_SignOutDialog> {
|
||||
|
||||
if (outcome.isSuccess) {
|
||||
await Future<void>.delayed(const Duration(milliseconds: 700));
|
||||
if (mounted) await _finish();
|
||||
if (mounted) _finish();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user