Index: sdk/lib/_internal/pub/lib/src/http.dart |
diff --git a/sdk/lib/_internal/pub/lib/src/http.dart b/sdk/lib/_internal/pub/lib/src/http.dart |
index e7da34c6c6189989e31d0d17d637bf2770ff3487..b23dfd0e5a20292a38fd704d3ce270021076882b 100644 |
--- a/sdk/lib/_internal/pub/lib/src/http.dart |
+++ b/sdk/lib/_internal/pub/lib/src/http.dart |
@@ -86,7 +86,7 @@ class PubHttpClient extends http.BaseClient { |
throw new PubHttpException(response); |
}); |
}).catchError((error) { |
- if (error is SocketIOException && |
+ if (error is SocketException && |
error.osError != null) { |
if (error.osError.errorCode == 8 || |
error.osError.errorCode == -2 || |