Stabilizza live YouTube/RTMP e fix crash rotazione mobile.
Pipeline YouTube con relay, overlay e publisher sync lato backend; fix GL pauseGlDuringRotation su Android per evitare crash in rotazione durante lo streaming Flutter. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -23,10 +23,23 @@ class _SplashScreenState extends ConsumerState<SplashScreen> {
|
||||
}
|
||||
|
||||
Future<void> _bootstrap() async {
|
||||
await ref.read(authProvider.notifier).restoreSession();
|
||||
await Future<void>.delayed(const Duration(milliseconds: 800));
|
||||
final notifier = ref.read(authProvider.notifier);
|
||||
await notifier.restoreSession();
|
||||
await Future<void>.delayed(const Duration(milliseconds: 400));
|
||||
if (!mounted) return;
|
||||
|
||||
var auth = ref.read(authProvider);
|
||||
if (auth.isAuthenticated) {
|
||||
final ok = await notifier.validateOrRefreshSession();
|
||||
if (!mounted) return;
|
||||
auth = ref.read(authProvider);
|
||||
if (!ok || !auth.isAuthenticated) {
|
||||
context.go('/login');
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (!mounted) return;
|
||||
final auth = ref.read(authProvider);
|
||||
if (auth.isAuthenticated) {
|
||||
context.go('/matches');
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user