Skip to content

Commit

Permalink
fix(servient): make shutdown serverStatuses growable
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Mar 27, 2022
1 parent a1c2f90 commit dcd455e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/src/core/servient.dart
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ class Servient {
}
_consumedThings.clear();

final serverStatuses =
_servers.map((server) => server.stop()).toList(growable: false);
final serverStatuses = _servers.map((server) => server.stop()).toList();
await Future.wait(serverStatuses);
serverStatuses.clear();
}
Expand Down

0 comments on commit dcd455e

Please sign in to comment.