Skip to content

Commit

Permalink
[pvr.tvh] wait for 30 seconds when deleting recordings
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
Jalle19 authored and herrnst committed Aug 2, 2014
1 parent e6f2051 commit 3a4e79d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/pvr.tvh/src/Tvheadend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3a4e79d

Please sign in to comment.