diff --git a/lib/src/core/implementation/thing_discovery.dart b/lib/src/core/implementation/thing_discovery.dart index dbf6e780..741a07d8 100644 --- a/lib/src/core/implementation/thing_discovery.dart +++ b/lib/src/core/implementation/thing_discovery.dart @@ -485,11 +485,11 @@ class ThingDiscoveryProcess extends Stream }) { final streamSubscription = _thingDescriptionStream.listen( onData, - onError: (error, stackTrace) { + onError: (error) { if (error is Exception) { _error = error; // ignore: avoid_dynamic_calls - onError?.call(error, stackTrace); + onError?.call(error); } }, onDone: () {