diff --git a/lib/src/core/implementation/servient.dart b/lib/src/core/implementation/servient.dart index c93c98a8..d7d57da9 100644 --- a/lib/src/core/implementation/servient.dart +++ b/lib/src/core/implementation/servient.dart @@ -107,13 +107,18 @@ class InternalServient implements Servient { return WoT(this); } - @override - Future start() async { + Future _startServers() async { final serverStatuses = _servers .map((server) => server.start(_serverSecurityCallback)) .toList(growable: false); await Future.wait(serverStatuses); + } + + @override + Future start() async { + await _startServers(); + return startClientFactories(); }