]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
htsp server: timeshift must be destroyed before subscription queue flush, fixes ...
authorJaroslav Kysela <perex@perex.cz>
Tue, 7 Oct 2014 12:16:03 +0000 (14:16 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 7 Oct 2014 12:16:03 +0000 (14:16 +0200)
src/htsp_server.c

index 09402c5605e0c0518972e9efd6ae85d3fafc7ca2..da872e13c8757a535eac7b1dcfcd675eda0a7ad6 100644 (file)
@@ -345,12 +345,12 @@ htsp_subscription_destroy(htsp_connection_t *htsp, htsp_subscription_t *hs)
     transcoder_destroy(hs->hs_transcoder);
 #endif
 
-  htsp_flush_queue(htsp, &hs->hs_q, 1);
-
 #if ENABLE_TIMESHIFT
   if(hs->hs_tshift)
     timeshift_destroy(hs->hs_tshift);
 #endif
+
+  htsp_flush_queue(htsp, &hs->hs_q, 1);
 }
 
 /**