mirror of
https://github.com/flutter/flutter
synced 2024-10-13 11:42:54 +00:00
Increase connection timeout (#13413)
This commit is contained in:
parent
d1e918fa10
commit
e38d48021c
|
@ -105,7 +105,7 @@ Future<VMIsolateRef> _connectToRunnerIsolate(int vmServicePort) async {
|
|||
throw 'not ready yet';
|
||||
return isolate;
|
||||
} catch (error) {
|
||||
const Duration connectionTimeout = const Duration(seconds: 2);
|
||||
const Duration connectionTimeout = const Duration(seconds: 4);
|
||||
if (new DateTime.now().difference(started) > connectionTimeout) {
|
||||
throw new TimeoutException(
|
||||
'Failed to connect to the task runner process',
|
||||
|
|
Loading…
Reference in a new issue