From 483b0007d1ee1a5f7a4c3a8d729cd4ae865361d4 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Wed, 16 Jan 2019 15:43:57 +0100 Subject: [PATCH] Fixed info/json websockets staying open forever --- src/output/output_http_internal.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/output/output_http_internal.cpp b/src/output/output_http_internal.cpp index 8e717a7d..1c81cd2b 100644 --- a/src/output/output_http_internal.cpp +++ b/src/output/output_http_internal.cpp @@ -835,6 +835,9 @@ namespace Mist { if (newState == STRMSTAT_READY && (++metaCounter % 4) == 0){ updateMeta(); } + if ((metaCounter % 40) == 0){ + ws.sendFrame("", 0, 0x9); + } } } return true;