increase the port check iteration count (#6301)
This commit is contained in:
parent
a6b5293df9
commit
8f0f19a5e2
2
.idea/.name
generated
2
.idea/.name
generated
@ -1 +1 @@
|
|||||||
Flutter
|
flutter
|
@ -11,7 +11,7 @@ import 'package:path/path.dart' as path;
|
|||||||
export 'package:file/io.dart';
|
export 'package:file/io.dart';
|
||||||
export 'package:file/sync_io.dart';
|
export 'package:file/sync_io.dart';
|
||||||
|
|
||||||
/// Currently active implmenetation of the file system.
|
/// Currently active implementation of the file system.
|
||||||
///
|
///
|
||||||
/// By default it uses local disk-based implementation. Override this in tests
|
/// By default it uses local disk-based implementation. Override this in tests
|
||||||
/// with [MemoryFileSystem].
|
/// with [MemoryFileSystem].
|
||||||
|
@ -124,7 +124,7 @@ Future<int> findAvailablePort() async {
|
|||||||
return port;
|
return port;
|
||||||
}
|
}
|
||||||
|
|
||||||
const int _kMaxSearchIterations = 5;
|
const int _kMaxSearchIterations = 20;
|
||||||
|
|
||||||
/// This method will attempt to return a port close to or the same as
|
/// This method will attempt to return a port close to or the same as
|
||||||
/// [defaultPort]. Failing that, it will return any available port.
|
/// [defaultPort]. Failing that, it will return any available port.
|
||||||
|
@ -483,8 +483,8 @@ class HotRunner extends ResidentRunner {
|
|||||||
int errorCode = error['code'];
|
int errorCode = error['code'];
|
||||||
if (errorCode == Isolate.kIsolateReloadBarred) {
|
if (errorCode == Isolate.kIsolateReloadBarred) {
|
||||||
printError('Unable to hot reload app due to an unrecoverable error in '
|
printError('Unable to hot reload app due to an unrecoverable error in '
|
||||||
'the source code. Please address the error and then '
|
'the source code. Please address the error and then use '
|
||||||
'Use "R" to restart the app.');
|
'"R" to restart the app.');
|
||||||
flutterUsage.sendEvent('hot', 'reload-barred');
|
flutterUsage.sendEvent('hot', 'reload-barred');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user