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 Apr 28, 2024
1 parent b716484 commit bce16f1
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 bce16f1

Please sign in to comment.