From a84e3b7e0127ee715500a0a7ada61343a3916b11 Mon Sep 17 00:00:00 2001 From: zhangyifan27 Date: Tue, 2 Feb 2021 19:02:06 +0800 Subject: [PATCH] fix: do not call unregister_rpc_handler when exiting progress --- src/failure_detector/failure_detector.cpp | 2 -- src/nfs/nfs_node_impl.cpp | 1 - 2 files changed, 3 deletions(-) diff --git a/src/failure_detector/failure_detector.cpp b/src/failure_detector/failure_detector.cpp index 0e73afdac6..3353239981 100644 --- a/src/failure_detector/failure_detector.cpp +++ b/src/failure_detector/failure_detector.cpp @@ -108,8 +108,6 @@ error_code failure_detector::stop() _is_started = false; - close_service(); - { zauto_lock l(_lock); for (auto &m : _masters) { diff --git a/src/nfs/nfs_node_impl.cpp b/src/nfs/nfs_node_impl.cpp index 41ecc4dd5c..4712eaba5a 100644 --- a/src/nfs/nfs_node_impl.cpp +++ b/src/nfs/nfs_node_impl.cpp @@ -64,7 +64,6 @@ error_code nfs_node_simple::start() error_code nfs_node_simple::stop() { - _server->close_service(); delete _server; _server = nullptr;