Skip to content

Commit

Permalink
Merge pull request #1758 from ardriveapp/PE-6217-state-error-bad-stat…
Browse files Browse the repository at this point in the history
…e-cannot-emit-new-states-after-calling-close

PE-6217: update drives_cubit.dart
  • Loading branch information
thiagocarvalhodev authored May 31, 2024
2 parents 3f7567e + 9209d69 commit eb0fdb6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/blocs/drives/drives_cubit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ class DrivesCubit extends Cubit<DrivesState> {
drivesWithAlerts: const [],
canCreateNewDrive: false);

if (isClosed) {
return;
}

emit(state);
}

Expand Down

0 comments on commit eb0fdb6

Please sign in to comment.