Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
8f0f19a5
Commit
8f0f19a5
authored
Oct 13, 2016
by
Devon Carew
Committed by
GitHub
Oct 13, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
increase the port check iteration count (#6301)
parent
a6b5293d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
.name
.idea/.name
+1
-1
file_system.dart
packages/flutter_tools/lib/src/base/file_system.dart
+1
-1
os.dart
packages/flutter_tools/lib/src/base/os.dart
+1
-1
hot.dart
packages/flutter_tools/lib/src/hot.dart
+2
-2
No files found.
.idea/.name
View file @
8f0f19a5
Flutter
flutter
\ No newline at end of file
\ No newline at end of file
packages/flutter_tools/lib/src/base/file_system.dart
View file @
8f0f19a5
...
@@ -11,7 +11,7 @@ import 'package:path/path.dart' as path;
...
@@ -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 impl
mene
tation of the file system.
/// Currently active impl
emen
tation 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].
...
...
packages/flutter_tools/lib/src/base/os.dart
View file @
8f0f19a5
...
@@ -124,7 +124,7 @@ Future<int> findAvailablePort() async {
...
@@ -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.
...
...
packages/flutter_tools/lib/src/hot.dart
View file @
8f0f19a5
...
@@ -483,8 +483,8 @@ class HotRunner extends ResidentRunner {
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment