From 0a1bb218c33b56e988bdb5ef012db2291ebd6eb5 Mon Sep 17 00:00:00 2001 From: Michael Dombrowski Date: Wed, 5 Feb 2020 10:00:12 -0800 Subject: [PATCH] Change finally to catch to continue the loop --- greengrassExamples/StreamManagerKinesis/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/greengrassExamples/StreamManagerKinesis/index.js b/greengrassExamples/StreamManagerKinesis/index.js index 60e5742..bd0d8e4 100644 --- a/greengrassExamples/StreamManagerKinesis/index.js +++ b/greengrassExamples/StreamManagerKinesis/index.js @@ -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(); }