Skip to content

Commit 0a1bb21

Browse files
authored
Change finally to catch to continue the loop
1 parent 1ccfa73 commit 0a1bb21

File tree

1 file changed

+1
-1
lines changed
  • greengrassExamples/StreamManagerKinesis

1 file changed

+1
-1
lines changed

greengrassExamples/StreamManagerKinesis/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ c.onConnected(async () => {
6969
const buf = Buffer.alloc(1);
7070
buf.writeUInt8(Math.floor(Math.random() * 255), 0);
7171
await c.appendMessage(STREAM_NAME, buf);
72-
} finally {
72+
} catch {
7373
clearInterval(interval);
7474
c.close();
7575
}

0 commit comments

Comments
 (0)