Skip to content

Commit f47fce7

Browse files
authored
0.70.1
* Fix opening streams for table and stream action results
2 parents da92337 + a282bc7 commit f47fce7

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ subprojects {
55
apply plugin: 'maven'
66

77
group 'org.iot-dsa'
8-
version '0.70.0'
8+
version '0.70.1'
99

1010
targetCompatibility = JavaVersion.VERSION_1_8
1111
sourceCompatibility = JavaVersion.VERSION_1_8

dslink-v2/src/main/java/com/acuity/iot/dsa/dslink/protocol/responder/DSInboundInvoke.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public class DSInboundInvoke extends DSInboundRequest
4848
private DSPermission permission;
4949
private ActionResults results;
5050
private int state = STATE_INIT;
51+
private boolean streamOpen = false;
5152
private DSInfo target;
5253
private PassThruUpdate updateHead;
5354
private PassThruUpdate updateTail;
@@ -234,6 +235,16 @@ public boolean write(DSSession session, MessageWriter writer) {
234235
writeClose(writer);
235236
}
236237
doClose();
238+
} else {
239+
switch (results.getResultsType()) {
240+
case STREAM:
241+
case TABLE:
242+
if (!streamOpen) {
243+
streamOpen = true;
244+
writeOpen(writer);
245+
}
246+
default:
247+
}
237248
}
238249
writeEnd(writer);
239250
return true;

0 commit comments

Comments
 (0)