Remove timeout waiting for app to start (#24336)

This commit is contained in:
Danny Tuppeny
2018-11-19 07:15:52 +00:00
committed by GitHub
parent ef37e9d64b
commit 08e7f26510

View File

@@ -429,12 +429,7 @@ class AppDomain extends Domain {
final Completer<void> appStartedCompleter = Completer<void>();
// We don't want to wait for this future to complete and callbacks won't fail.
// As it just writes to stdout.
appStartedCompleter.future.timeout(const Duration(minutes: 3), onTimeout: () { // ignore: unawaited_futures
_sendAppEvent(app, 'log', <String, dynamic>{
'log': 'timeout waiting for the application to start',
'error': true,
});
}).then<void>((_) {
appStartedCompleter.future.then<void>((_) { // ignore: unawaited_futures
_sendAppEvent(app, 'started');
});