From 873f57259f6a12eaaf4707f253e9404b70b7a2e0 Mon Sep 17 00:00:00 2001 From: Alex Li Date: Fri, 16 Dec 2022 01:19:15 +0800 Subject: [PATCH] Fix `close` in `IOHttpClientAdapter` (#33) Signed-off-by: Alex Li Signed-off-by: Alex Li --- dio/lib/src/adapters/io_adapter.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dio/lib/src/adapters/io_adapter.dart b/dio/lib/src/adapters/io_adapter.dart index c22dc08aa..45c270459 100644 --- a/dio/lib/src/adapters/io_adapter.dart +++ b/dio/lib/src/adapters/io_adapter.dart @@ -199,7 +199,7 @@ class IOHttpClientAdapter implements HttpClientAdapter { @override void close({bool force = false}) { - _closed = _closed; + _closed = true; _defaultHttpClient?.close(force: force); } }