From 4a691eae316a5c8649b6a3b07a7dfdeaab57722a Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期五, 03 九月 2021 16:15:32 +0800
Subject: [PATCH] rebuild pb.go

---
 src/bh_api.cpp |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/src/bh_api.cpp b/src/bh_api.cpp
index 94637ad..5310992 100644
--- a/src/bh_api.cpp
+++ b/src/bh_api.cpp
@@ -1547,7 +1547,6 @@
     return false;
   }
 
-  rv = pthread_mutex_trylock(&mutex);
   if (rv == 0) {
     if (timeout_ms > 0) {
 
@@ -1590,8 +1589,6 @@
         
         logger->error("in BHReadRequest: Out of memory!\n");
         
-        pthread_mutex_unlock(&mutex);
-
         return false;
       }
       memset(topics_buf, 0x00, size + MIN_STR_LEN);
@@ -1629,8 +1626,6 @@
       *(int *)buf = key;
       *src = buf;
     }
-
-    pthread_mutex_unlock(&mutex);
 
     memset(errString, 0x00, sizeof(errString));
     strncpy(errString, bus_strerror(rv), sizeof(errString));

--
Gitblit v1.8.0