|
|
@ -130,7 +130,7 @@ class _CyberWOW_PageState extends State<CyberWOW_Page> with WidgetsBindingObserv
|
|
|
|
SyncingState _syncingState = await _loadingState.next(loading, '');
|
|
|
|
SyncingState _syncingState = await _loadingState.next(loading, '');
|
|
|
|
|
|
|
|
|
|
|
|
final syncing = process
|
|
|
|
final syncing = process
|
|
|
|
.runBinary(binName, input: inputStreamController.stream)
|
|
|
|
.runBinary(binName, _isExiting, input: inputStreamController.stream)
|
|
|
|
.asBroadcastStream();
|
|
|
|
.asBroadcastStream();
|
|
|
|
|
|
|
|
|
|
|
|
HookedState _syncedNextState = await _syncingState.next(inputStreamController.sink, syncing);
|
|
|
|
HookedState _syncedNextState = await _syncingState.next(inputStreamController.sink, syncing);
|
|
|
@ -195,7 +195,7 @@ class _CyberWOW_PageState extends State<CyberWOW_Page> with WidgetsBindingObserv
|
|
|
|
_exiting = true;
|
|
|
|
_exiting = true;
|
|
|
|
inputStreamController.sink.add('exit');
|
|
|
|
inputStreamController.sink.add('exit');
|
|
|
|
|
|
|
|
|
|
|
|
await Future.delayed(const Duration(seconds: 10), () => null);
|
|
|
|
await Future.delayed(const Duration(seconds: 5), () => null);
|
|
|
|
|
|
|
|
|
|
|
|
// the process controller should call exit(0) for us
|
|
|
|
// the process controller should call exit(0) for us
|
|
|
|
log.warning('Daemon took too long to shut down!');
|
|
|
|
log.warning('Daemon took too long to shut down!');
|
|
|
|