tweak timeout
This commit is contained in:
parent
2763a0fdf5
commit
efe9262a97
1 changed files with 2 additions and 1 deletions
|
|
@ -83,8 +83,9 @@ void main(List<String> args) async {
|
|||
if (isInBackground) {
|
||||
await ProviderContainer()
|
||||
.read(UnifiedPushController.provider.future)
|
||||
.timeout(Duration(seconds: 20), onTimeout: () => false);
|
||||
.timeout(Duration(seconds: 5));
|
||||
|
||||
await Future.delayed(Duration(seconds: 10));
|
||||
exit(0);
|
||||
} else {
|
||||
if (Platform.isLinux || Platform.isMacOS || Platform.isWindows) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue