Skip to content

Commit

Permalink
chore: stop client after readProperty operation
Browse files Browse the repository at this point in the history
This needs a more thorough fix...
  • Loading branch information
JKRhb committed May 8, 2024
1 parent c8b3eb3 commit 34d8b06
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/src/core/implementation/consumed_thing.dart
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ class ConsumedThing implements scripting_api.ConsumedThing {
);

final content = await client.readResource(form);
// FIXME: Clients should be reusable
await client.stop();
return InteractionOutput(content, servient.contentSerdes, form, property);
}

Expand Down

0 comments on commit 34d8b06

Please sign in to comment.