]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
abort() if channel is already set.
authorAndreas Öman <andreas@lonelycoder.com>
Fri, 2 May 2008 18:32:34 +0000 (18:32 +0000)
committerAndreas Öman <andreas@lonelycoder.com>
Fri, 2 May 2008 18:32:34 +0000 (18:32 +0000)
transports.c

index 70ab1817e3e1a7cc5ab6610ef595a85d5dca49ec..6ad321100aa5e5e2a579c133810287817ff4ac97 100644 (file)
@@ -528,6 +528,8 @@ transport_set_channel(th_transport_t *t, const char *chname)
 {
   th_channel_t *ch = channel_find(chname, 1, NULL);
 
+  assert(t->tht_channel == NULL);
+
   avgstat_init(&t->tht_cc_errors, 3600);
   avgstat_init(&t->tht_rate, 10);