]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Replace obvious mistake pthread_mutex_lock() -> pthread_mutex_unlock()
authorAndreas Öman <andreas@lonelycoder.com>
Tue, 1 Feb 2011 19:29:33 +0000 (20:29 +0100)
committerAndreas Öman <andreas@lonelycoder.com>
Tue, 1 Feb 2011 19:30:42 +0000 (20:30 +0100)
src/webui/extjs.c

index d6c1caafad10c568c278918ec8a34f17a2d735f9..e611106419c447dd2f7cb861acbadfe48c5acda9 100644 (file)
@@ -264,15 +264,15 @@ extjs_tablemgr(http_connection_t *hc, const char *remain, void *opaque)
 
   } else {
   bad:
-    pthread_mutex_lock(dt->dt_dtc->dtc_mutex);
+    pthread_mutex_unlock(dt->dt_dtc->dtc_mutex);
     return HTTP_STATUS_BAD_REQUEST;
 
   noaccess:
-    pthread_mutex_lock(dt->dt_dtc->dtc_mutex);
+    pthread_mutex_unlock(dt->dt_dtc->dtc_mutex);
     return HTTP_STATUS_BAD_REQUEST;
   }
 
-  pthread_mutex_lock(dt->dt_dtc->dtc_mutex);
+  pthread_mutex_unlock(dt->dt_dtc->dtc_mutex);
 
   if(in != NULL)
     htsmsg_destroy(in);