]> git.proxmox.com Git - flutter/pve_flutter_frontend.git/commitdiff
add stream is closed check
authorTim Marx <t.marx@proxmox.com>
Fri, 6 Dec 2019 16:42:37 +0000 (17:42 +0100)
committerTim Marx <t.marx@proxmox.com>
Fri, 6 Dec 2019 16:42:37 +0000 (17:42 +0100)
Signed-off-by: Tim Marx <t.marx@proxmox.com>
lib/bloc/pve_login_bloc.dart

index 8435cfc0b23438f9e2a187c0ef68770ef62ab669..a1806e7af380a52b2cafd382cde1cbda7f360f57 100644 (file)
@@ -37,6 +37,7 @@ class PveLoginBloc {
         })
         .switchMap((event) => _eventToState(event))
         .forEach((PveLoginState state) {
+          if (_stateSubject.isClosed) return;
           _stateSubject.add(state);
         });
   }