fix: firstClient null check race
This commit is contained in:
+1
-1
@@ -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((_) {
|
||||
|
||||
Reference in New Issue
Block a user