Skip to content

Commit 5caf8fb

Browse files
committed
chore: stop client after readProperty operation
This needs a more thorough fix...
1 parent 22bee29 commit 5caf8fb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/src/core/implementation/consumed_thing.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ class ConsumedThing implements scripting_api.ConsumedThing {
117117
);
118118

119119
final content = await client.readResource(form);
120+
// FIXME: Clients should be reusable
121+
await client.stop();
120122
return InteractionOutput(content, servient.contentSerdes, form, property);
121123
}
122124

0 commit comments

Comments
 (0)