increase the port check iteration count (#6301)

This commit is contained in:
Devon Carew 2016-10-12 23:48:08 -07:00 committed by GitHub
parent a6b5293df9
commit 8f0f19a5e2
4 changed files with 5 additions and 5 deletions

2
.idea/.name generated
View File

@ -1 +1 @@
Flutter
flutter

View 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].

View File

@ -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.

View File

@ -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;
}