From dac84d4998947e49dae1ab9233d88d0edc10413d Mon Sep 17 00:00:00 2001 From: Florrie Date: Sat, 6 Jul 2019 11:40:55 -0300 Subject: End flushable when socket disconnects This prevents occasional errors from showing up when a flushable tries to flush to the socket after it's been closed. --- client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client.js') diff --git a/client.js b/client.js index 7f21d1a..a0c8352 100644 --- a/client.js +++ b/client.js @@ -82,7 +82,7 @@ const setupClient = async ({backend, writable, interfacer, appConfig}) => { flushable.flush() }, 100) - return {appElement, cleanTerminal, renderInterval} + return {appElement, cleanTerminal, flushable, renderInterval} } module.exports = setupClient -- cgit 1.3.0-6-gf8a5