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 Apr 26, 2014
1 parent fc69c47 commit 36a9741
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 36a9741

Please sign in to comment.