fix: firstClient null check race

This commit is contained in:
edde746
2026-03-04 10:01:40 +01:00
parent 13b5d7bae8
commit 8cd48f3af5
3 changed files with 2 additions and 6 deletions
+1 -1
View File
@@ -513,7 +513,7 @@ class _SetupScreenState extends State<SetupScreen> {
if (!mounted) return;
if (result.hasConnections) {
if (result.hasConnections && result.firstClient != null) {
// Resume any downloads that were interrupted by app kill
final downloadProvider = context.read<DownloadProvider>();
downloadProvider.ensureInitialized().then((_) {