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 | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/socket/bus_server_socket_wrapper.c b/src/socket/bus_server_socket_wrapper.c index 5c793c1..0fd228e 100644 --- a/src/socket/bus_server_socket_wrapper.c +++ b/src/socket/bus_server_socket_wrapper.c @@ -7,7 +7,7 @@ * 鍒涘缓 */ void * bus_server_socket_wrapper_open() { - printf("===bus_server_socket_wrapper_open\n"); + logger->debug("===bus_server_socket_wrapper_open\n"); BusServerSocket *sockt = new BusServerSocket; return (void *)sockt; } @@ -16,9 +16,10 @@ * 鍏抽棴 */ void bus_server_socket_wrapper_close(void *_socket) { - printf("===bus_server_socket_wrapper_close\n"); + BusServerSocket *sockt = (BusServerSocket *)_socket; delete sockt; + logger->debug("===bus_server_socket_wrapper_close\n"); } /** @@ -30,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