| Index: pkg/http/test/utils.dart
|
| diff --git a/pkg/http/test/utils.dart b/pkg/http/test/utils.dart
|
| index ab3f5f6dfdebeb1e67fb23d7bdbea7807c920d66..a68bdbb3ad95e12b83a3e28e19ad259dcd929a44 100644
|
| --- a/pkg/http/test/utils.dart
|
| +++ b/pkg/http/test/utils.dart
|
| @@ -108,8 +108,10 @@ Future startServer() {
|
|
|
| /// Stops the current HTTP server.
|
| void stopServer() {
|
| - _server.close();
|
| - _server = null;
|
| + if (_server != null) {
|
| + _server.close();
|
| + _server = null;
|
| + }
|
| }
|
|
|
| /// Removes eight spaces of leading indentation from a multiline string.
|
|
|