Skip to content

Commit

Permalink
Change finally to catch to continue the loop
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeDombo authored Feb 5, 2020
1 parent 1ccfa73 commit 0a1bb21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion greengrassExamples/StreamManagerKinesis/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ c.onConnected(async () => {
const buf = Buffer.alloc(1);
buf.writeUInt8(Math.floor(Math.random() * 255), 0);
await c.appendMessage(STREAM_NAME, buf);
} finally {
} catch {
clearInterval(interval);
c.close();
}
Expand Down

0 comments on commit 0a1bb21

Please sign in to comment.