Commit 8f0f19a5 authored by Devon Carew's avatar Devon Carew Committed by GitHub

increase the port check iteration count (#6301)

parent a6b5293d
Flutter
\ No newline at end of file
flutter
\ No newline at end of file
......@@ -11,7 +11,7 @@ import 'package:path/path.dart' as path;
export 'package:file/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
/// with [MemoryFileSystem].
......
......@@ -124,7 +124,7 @@ Future<int> findAvailablePort() async {
return port;
}
const int _kMaxSearchIterations = 5;
const int _kMaxSearchIterations = 20;
/// This method will attempt to return a port close to or the same as
/// [defaultPort]. Failing that, it will return any available port.
......
......@@ -483,8 +483,8 @@ class HotRunner extends ResidentRunner {
int errorCode = error['code'];
if (errorCode == Isolate.kIsolateReloadBarred) {
printError('Unable to hot reload app due to an unrecoverable error in '
'the source code. Please address the error and then '
'Use "R" to restart the app.');
'the source code. Please address the error and then use '
'"R" to restart the app.');
flutterUsage.sendEvent('hot', 'reload-barred');
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment