From a829f3595230ebda8b66650ca1f298971e4f13c0 Mon Sep 17 00:00:00 2001 From: Jonatan Nilsson Date: Tue, 26 Jun 2018 19:40:29 +0000 Subject: [PATCH] caspar: Fix slight bug? --- api/casparcg/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/casparcg/client.js b/api/casparcg/client.js index 1e10b97..8e1c7fd 100644 --- a/api/casparcg/client.js +++ b/api/casparcg/client.js @@ -26,7 +26,7 @@ export async function connect() { casparIsConnected = false logger.info('CasparCG: Connectiong to', currentHost + ':' + 5250) - if (connection) { + if (connection && connection.close) { await connection.close() }