pull/14544/head
Dan Zhang 7 years ago
parent b293e9e822
commit 6cc5a09ffd
  1. 6
      src/core/lib/iomgr/udp_server.cc
  2. 1
      test/core/iomgr/udp_server_test.cc

@ -159,9 +159,7 @@ GrpcUdpListener::GrpcUdpListener(grpc_udp_server* server, int fd,
gpr_mu_init(&mutex_);
}
GrpcUdpListener::~GrpcUdpListener() {
gpr_mu_destroy(&mutex_);
}
GrpcUdpListener::~GrpcUdpListener() { gpr_mu_destroy(&mutex_); }
/* the overall server */
struct grpc_udp_server {
@ -239,7 +237,6 @@ void GrpcUdpListener::shutdown_fd(void* args, grpc_error* error) {
gpr_mu_unlock(sp->mutex());
}
static void finish_shutdown(grpc_udp_server* s) {
if (s->shutdown_complete != nullptr) {
GRPC_CLOSURE_SCHED(s->shutdown_complete, GRPC_ERROR_NONE);
@ -257,7 +254,6 @@ static void finish_shutdown(grpc_udp_server* s) {
}
grpc_core::Delete(s);
}
static void destroyed_port(void* server, grpc_error* error) {

@ -115,7 +115,6 @@ class TestGrpcUdpHandlerFactory : public GrpcUdpHandlerFactory {
void DestroyUdpHandler(GrpcUdpHandler* handler) override {
gpr_log(GPR_INFO, "Destroy handler");
grpc_core::Delete(reinterpret_cast<TestGrpcUdpHandler*>(handler));
}
};

Loading…
Cancel
Save