Skip to content

Commit bce16f1

Browse files
committedApr 28, 2024·
chore: stop client after readProperty operation
This needs a more thorough fix...
1 parent b716484 commit bce16f1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎lib/src/core/implementation/consumed_thing.dart

+2
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)