From 36a9741b32db691a6b508068ec8a7d9d71591e5e Mon Sep 17 00:00:00 2001 From: Sam Stenvall Date: Wed, 12 Mar 2014 20:15:15 +0200 Subject: [PATCH] [pvr.tvh] wait for 30 seconds when deleting recordings Chances are pretty high that the response will otherwise timeout and an error dialog will be triggered. This is because deleting recordings can take quite a while (ideally it should be fixed in tvheadend). --- addons/pvr.tvh/src/Tvheadend.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/pvr.tvh/src/Tvheadend.cpp b/addons/pvr.tvh/src/Tvheadend.cpp index 0f6135f4e..a89fa58c9 100644 --- a/addons/pvr.tvh/src/Tvheadend.cpp +++ b/addons/pvr.tvh/src/Tvheadend.cpp @@ -206,8 +206,8 @@ PVR_ERROR CTvheadend::SendDvrDelete ( uint32_t id, const char *method ) htsmsg_t *m = htsmsg_create_map(); htsmsg_add_u32(m, "id", id); - /* Send and Wait */ - if ((m = m_conn.SendAndWait(method, m)) == NULL) + /* Send and wait a bit longer than usual */ + if ((m = m_conn.SendAndWait(method, m, 30)) == NULL) { tvherror("failed to cancel/delete DVR entry"); return PVR_ERROR_SERVER_ERROR;