Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(755)

Unified Diff: lib/http_multi_server.dart

Issue 985773003: Use OSError.errorCode rather than .errno. (Closed) Base URL: git@github.com:dart-lang/http_multi_server@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/http_multi_server.dart
diff --git a/lib/http_multi_server.dart b/lib/http_multi_server.dart
index 36d583f78d8c495a0e9062d4c344eea5e75895ca..abad76ebb9b163910e9b92ad208f48b16185a90c 100644
--- a/lib/http_multi_server.dart
+++ b/lib/http_multi_server.dart
@@ -148,7 +148,7 @@ class HttpMultiServer extends StreamView<HttpRequest> implements HttpServer {
return new HttpMultiServer([v4Server, v6Server]);
}).catchError((error) {
if (error is! SocketException) throw error;
- if (error.osError.errno != _addressInUseErrno) throw error;
+ if (error.osError.errorCode != _addressInUseErrno) throw error;
if (port != 0) throw error;
if (remainingRetries == 0) throw error;
« no previous file with comments | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698