Skip to content

Commit

Permalink
fix: throw socket exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
gabaldon committed Nov 18, 2024
1 parent 2e8f99a commit a709698
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/src/network/explorer/explorer_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ class RetryHttpClient {
} on http.ClientException catch (e) {
if (e.message.contains('Client is already closed')) {
retryClient = RetryClient(http.Client());
response = await requestMethod(uri, body: data);
throw HttpException(e);
}
if (e.toString().contains('SocketException')) {
retryClient = RetryClient(http.Client());
throw HttpException(e);
}
}
if (response != null) {
Expand Down

0 comments on commit a709698

Please sign in to comment.