From dbf7fd6f620b86c382431ce10fd5fe3c5ddca955 Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期四, 24 十二月 2020 14:10:44 +0800 Subject: [PATCH] update --- src/socket/bus_server_socket_wrapper.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/socket/bus_server_socket_wrapper.c b/src/socket/bus_server_socket_wrapper.c index 220461e..0fd228e 100644 --- a/src/socket/bus_server_socket_wrapper.c +++ b/src/socket/bus_server_socket_wrapper.c @@ -17,8 +17,8 @@ */ void bus_server_socket_wrapper_close(void *_socket) { - // BusServerSocket *sockt = (BusServerSocket *)_socket; - //delete sockt; + BusServerSocket *sockt = (BusServerSocket *)_socket; + delete sockt; logger->debug("===bus_server_socket_wrapper_close\n"); } @@ -31,7 +31,7 @@ int ret; BusServerSocket *sockt = (BusServerSocket *)_socket; - if( (ret = sockt->bind(BUS_KEY)) == 0) { + if( (ret = sockt->force_bind(BUS_KEY)) == 0) { return sockt->start(); } else { logger->error("start bus failed"); -- Gitblit v1.8.0