From fb8aef5a4908a50d415cf5ed33a10699fdfa9c98 Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期二, 22 十二月 2020 11:06:15 +0800
Subject: [PATCH] udpate

---
 src/socket/net_mod_socket.c |   17 +++++++----------
 1 files changed, 7 insertions(+), 10 deletions(-)

diff --git a/src/socket/net_mod_socket.c b/src/socket/net_mod_socket.c
index 3eb7077..1e1fc27 100644
--- a/src/socket/net_mod_socket.c
+++ b/src/socket/net_mod_socket.c
@@ -287,7 +287,13 @@
     }
   }
 
-  
+  // 鏈湴鍙戦��
+  if(node_arr == NULL || arrlen == 0) {
+    if(shmModSocket.pub(topic, topic_size, content, content_size, node->key) == 0 ) {
+      n_pub_suc++;
+    }
+  }
+
   for (i = 0; i < arrlen; i++) {
 
     node = &node_arr[i];
@@ -558,15 +564,6 @@
   return shmModSocket.sendandrecv_nowait(send_buf, send_size, key, recv_buf, recv_size);
 }
 
-
-/**
- * 鍚姩bus
- * 
- * @return 0 鎴愬姛锛� 鍏朵粬鍊� 澶辫触鐨勯敊璇爜
-*/
-int  NetModSocket::start_bus() {
-  return shmModSocket.start_bus();
-}
 
 /**
  * 璁㈤槄鎸囧畾涓婚

--
Gitblit v1.8.0