From d6e2da90f555ecfd88abfff9f86fa79e5008b030 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Thu, 9 Mar 2023 16:01:07 +0100 Subject: [PATCH] No longer reconnect to metadata - happens automatically as-needed. --- src/output/output.cpp | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/output/output.cpp b/src/output/output.cpp index c06ac773..8db73718 100644 --- a/src/output/output.cpp +++ b/src/output/output.cpp @@ -2085,23 +2085,6 @@ namespace Mist{ thisPacket.null(); return true; } - //every ~16 seconds, reconnect to metadata - if (emptyCount % 1600 == 0){ - INFO_MSG("Reconnecting to input; track %zu key %" PRIu32 " is on page %" PRIu32 " and we're currently serving %" PRIu32 " from %" PRIu32, nxt.tid, thisKey+1, nextKeyPage, thisKey, currentPage[nxt.tid]); - reconnect(); - if (!meta){ - onFail("Could not connect to stream data", true); - thisPacket.null(); - return true; - } - // if we don't have a connection to the metadata here, this means the stream has gone offline in the meanwhile. - if (!meta){ - Util::logExitReason("Attempted reconnect to source failed"); - thisPacket.null(); - return true; - } - return false;//no sleep after reconnect - } //Fine! We didn't want a packet, anyway. Let's try again later. playbackSleep(10);